Django-Gallery
Roy Chela
A django personal gallery application that displays my photos for others to see.
21/07/2019
Behaviour | Input | Output |
---|---|---|
Navigate to website | Click on an image | Image is expanded and further details of the image displayed |
Navigate to locations in navbar | Click on a location | Photos from that location are displayed |
Navigate to search input | Type in a photo category e.g cars | Photos of that particular category are displayed |
- Django 1.11
- Python 3.5 and above
- Fork the data onto your own personal repository.
- Clone Project to your machine
- Activate a virtual environment on terminal:
source virtual/bin/activate
- Install all the requirements found in requirements file.
- Access the live site using the local host provided
git clone https://github.com/Roychela/DJANGO-GALLERY.git
git init
git remote add origin <your-repository-url>
python3.6 -m virtualenv virtual
source virtual/bin/activate
Create a .env
file and paste the following filling where appropriate:
SECRET_KEY='your_Secret_key'
DEBUG=True
DB_USER='your_database_username'
DB_PASSWORD='your_database_password'
DB_HOST='127.0.0.1'
MODE='dev'
ALLOWED_HOSTS='.localhost', '.herokuapp.com', '.127.0.0.1'
DISABLE_COLLECTSTATIC=1
Install dependencies that will create an environment for the app to run
pip install -r requirements.txt
python3.6 manage.py makemigrations && python3.6 manage.py migrate
python3.6 manage.py runserver
Open localhost:8000
Click Live site to view the deployed application
None
- Python3.6
- Django
- Javascript
- Css
- Scss