Logo Lanfrica

lwairore/django-explore-africa

Type de record:

software
Créateur:
lwa
Hôte:
Django Explore Africa is my personal gallery application that displays high quality and completely free stock photos showcasing the beauty of Africa. ## Django Explore Africa Django Explore Africa is my personal gallery application that displays high quality and completely free stock photos showcasing the beauty of Africa. #### Preview ##### Homepage ## Features 1. View different photos 1. Copy a link to the photo to share with friends 1. View photos based on the location they were taken 1. Application is accessible to users on both **desktop** and **mobile** formats. Django Explore Africa uses Bootstrap framework to ensure its responsive to different screen sizes. # Demo Here is a working live demo: explorekenya.herokuapp.com ## Site ## Landing Page ## Installation #### Clone gallery repository Create a folder, gallery-clone, by running ``` $ mkdir gallery-clone ``` Navigate to gallery-clone folder(this is where gallery cloned version will be stored) ``` $ cd gallery-clone ``` Next, we download gallery repository by running: ``` $ git clone github.com ``` #### Creating a Virtual Environment Python3.6 and up comes with a tool called ```venv``` that allows the creation of a virtual environment. ``` $ python3.6 -m venv --without-pip virtual ``` Above we used ```venv``` tool to create a virtual environment and called it `virtual`. #### Activating the virtual environment To activate the virtual environment we run the following command: ``` $ source virtual/bin/activate ``` #### Download the latest version of pip ``` (virtual)$ curl bootstrap.pypa.io | python ``` MyGallery heavily relies on pip to install Django and any other packages that we will need. #### Install Django Next we need to install the latst django release of version 1.11 ``` (virtual)$ pip install django==1.11 ``` To avoid issues, I recommend you install to you the exact version used above. #### Install database dependency Django projects come preconfigured to work with sqlite databases which are small dynamic SQL databases. But these prove difficult to scale when our content grow …