An Independent project for Moringa Core Django module, Feb 28th, 2022.
Galleria is a photo gallery web application to showcase a collection of pictures.
- Users get can view photos uploaded by admin.
- Users can see photos based on the location, by clicking on the listed locations in the menu.
- They can also copy the link to a photo to paste at their discretion.
- And finally also search for photos based on the categories.
- The home page allows users to see various images:
- User can see all images per location they were taken
- Users can also search for images based categories
- Admin can upload images from a django dashboard
Here is the Design
Landing
Locations
Gallery
Image Details Modal
Footer
Admin
View the complete site here
- Python 3.8
- Django MVC framework
- HTML and Bootstrap
- JavaScript
- Postgressql
- Heroku
To view the BDD check the specs file.
The Galleria project requires a prerequisite understanding of the following:
- Django Framework
- Python3.8
- Postgres
- Python virtualenv
Activate virtual environment using python3.8 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
No known bugs so far. If found drop me an email.
- Venesa Okuna