Gallery is a web application to showcase beautiful pictures. Users get can view photos uploaded by admin. Users can see photos based on the category, by clicking on the listed locations in the menu. They can also copy the link to a photo to paste at their discretion. They can also search for photos based on the categories.
- The home page allows users to see various images:
- User can see all images per category they were taken
- Users can also search for images based on categories
https://celgallery.herokuapp.com/
- Python 3.8
- Django MVC framework
- HTML, CSS and Bootstrap
- JavaScript
- Postgressql
- Heroku
The Gallery project requires a prerequisite understanding of the following:
- Django Framework
- Python3.8
- Postgres
- Python virtualenv
https://github.com/chepceline/photo-gallery.git
Activate virtual environment using python3.6 as default handler
virtualenv -p /usr/bin/python3.8 venv && source venv/bin/activate
Install dependancies that will create an environment for the app to run pip3 install -r requirements.txt
- psql
- CREATE DATABASE gallery;
Create .env file and paste paste the following filling where appropriate:
SECRET_KEY = '<Secret_key>'
DBNAME = 'gallery'
USER = '<Username>'
PASSWORD = '<password>'
DEBUG = True
python3.8 manage.py makemigrations gallery
python3.8 manage.py migrate
python3.8 manage.py runserver
Open terminal on localhost:8000
- Damaris Chepchirchir