- Check whether you have pip installed by typing
pip --version
from the terminal. If it tells you what version you have, then it's installed. Do the same thing with python with the commandpython --version
. If you don't have them, install them. Install python 2.x, not 3.x. - Install virtualenv using pip by running the command
pip install virtualenv
from the terminal. - Clone the github repository.
- Use the
cd <foldername>
command in the terminal to navigate to the base folder from github, where foldername is whatever the name of the folder you cloned is (the one which also contains "requirements.txt") - Run the command
virtualenv venv
, then the commandsource venv/bin/activate
. - Remove the line
psycopg2==2.6.1
from requirements.txt - From the same folder, run the command
pip install -r requirements.txt
- In the file
adventure_agg/settings.py
, comment out the following lines using#
:
import dj_database_url
DATABASES['default'] = dj_database_url.config()
- At the bottom of that file, also comment out everything after the line
# Static asset configuration
. - From the base folder, run the command
python manage.py runserver
- Go to
http://127.0.0.1:8000/
in your browser. You should see the site now.
Once this is done, to run the server again in the future, you'll only need to do the following:
cd foldername
source venv/bin/activate
python manage.py runserver
"base.html" is for the html that's common to every page on the site (e.g. the header), whereas "index.html" is just for the front page. The contents of "index.html" is plugged into base.html to generate the complete HTML for the front page. You can read more about this in the "template inheritance" section at the very bottom of this page: http://www.djangobook.com/en/2.0/chapter04.html (you should skip everything above it -- just go straight to the template inheritance section).
--
Front End Design using these icons: https://design.google.com/icons/