Skip to content

Edu58/Django-Gallery

Repository files navigation

Personal Gallery

This is a personal gallery built with Django Python Framework and PostgreSQL database where a user can upload images and other info such as location, description. The images are also categorised to allow searching of images based on a certain category.

Home

Getting Started

  • Type the following command in your terminal to clone this repository
git clone https://github.com/Edu58/Django-Gallery.git

If you are using SSH, use the following command

git clone git@github.com:Edu58/Django-Gallery.git

When you run the commands successfully, you should have a local version of this repository.

Prerequisites

  • A computer with Python 3 install. Check here for further instructions
  • Access to the Internet
  • An IDE of your choice e.g. Pycharm, VS Code, Sublime Text

Installing

Before starting the application, run pip install -r requirements.txt to install the project dependencies.

To run the app, unzip the cloned folder if it is zipped. Otherwise, navigate inside the folder and run python manage.py runserver or python manage.py server in your terminal. Any of these 2 should start the server at localhost:8000. Once the server is running, open your browser and enter localhost:8000 in your url bar of your preferred browser, and you should be able to use the app now. This will only work on the computer running the server. It is not available to anyone else. You should see something similar to the image below on clicking a single image.

Home

Running the tests

To run tests, open your terminal and navigate to the root directory of the project. Run python manage.py test in your terminal. If all tests run successfully, you will an OK message in the terminal and the number of tests that have been run.

Deployment

This project can be deployed for free on Heroku. Follow these instructions to deploy.

Built With

Contributing

Feel free to submit a pull request or reach out at edumuriithi58@gmail.com.

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

A personal gallery made with Django, Bootstrap and PostgreSQL

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published