A Django web application that displays photos. Photos can be filtered based on location and searched by category.
-User clicks on gallery button to view all images -User views images by location dropdown. -User searches for images by category. -User hovers over an image to expand it and show details. -User can click on copy button on the expanded pop up to copy image link
- Django
- Postgresql
- Python
- Clone the repository
git clone git@github.com:githaefrancis/prism-gallery.git
- Navigate to the project folder
cd PRISM-GALLERY
-
Create database
-
Create .env file
export DB_NAME=<name_of_db>
export DB_USER='db_user'
export DB_PASSWORD='db_password'
export SECRET_KEY='secret_key'
export DEBUG='False'
export DB_HOST='127.0.0.1'
export MODE='dev'
export ALLOWED_HOSTS='.localhost','.heroku.com','.127.0.0.1'
export DISABLE_COLLECTSTATIC=1
- Load .env
source .env
- Migrate models
python3 manage.py migrate
- Run the app
python3 manage.py runserver
Email: mureithigithae@gmail.com
This project is under the MIT License click here for more information
© 2022 Francis Githae