This is an Independent project for Moringa Core Django module, July 13th 2018.
Sunsplash is a photo gallery web application to showcase beautiful 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. 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 location they were taken
- Users can also search for images based categories
- Admin can upload images from a django dashboard
View the complete site here
- Python 3.6
- Django MVC framework
- HTML, CSS and Bootstrap
- JavaScript
- Postgressql
- Heroku
To view the user dtories or BDD check the specs file.
The Sunsplash project requires a prerequisite understanding of the following:
- Django Framework
- Python3.6
- Postgres
- Python virtualenv
Activate virtual environment using python3.6 as default handler
virtualenv -p /usr/bin/python3.6 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.6 manage.py makemigrations gallery
python3.6 manage.py migrate
python3.6 manage.py runserver
Open terminal on localhost:8000
No known bugs so far. If found drop me an email.
- Sophia Murage