- We strongly recommend that you run this inside of a python virtual environment.
- More info on what a virtual environment and how to run it can be found here
Please make sure that your virtual environment is activated before continuing (if you choose to go that route).
You should note that most (if not all) the dependencies will be installed from pip
-
Next, since this is a Django application we will need to install Django
- It can be downloaded with the following command:
pip install django
- You can check to see which version of Django you are running inside the python shell:
import django
django.VERSION
- It can be downloaded with the following command:
-
We are currently using Postgres as our DB of choice. But for your convenience the lines of codes required to run sqlite were simply commented out (in foraliving_project/settings.py). Should you decide to use the latter of the two, simply swap out which DB info is commented out.
- Django girls provides a great documentation on how to get Postgres running along side Django
- Please remember to update the foraliving_project/settings.py DB section to reflect the credentials that you set up for your DB.
-
The following are just other dependencies that are required to run the successfully run the project:
pip install django-user-accounts
pip install pinax-theme-bootstrap
pip install metron
pip install BeautifulSoup4
pip install django-mail-templated
pip install django-categories
pip install django-bootstrap3
- To start the server, run
python manage.py runserver
- The default port is the infamous
8000
but you can specify another- Example:
python manage.py runserver 8080
- Example: