For this project you will need python 2.7.x installed on your computer. You can download the python installer here.
Note: Depending on your Operating system, you may have python already installed.
To check if you have python installed, you can try the following in the command line.
$ pythonThis will get you to the python shell and it also provides the python version that's installed.
This is not necessary, but it is highly recommended. A virtual environment is a place where you can work separately from your global environment and install everything you want and never affect your global environment.
To do this in python, you can install virtualenv with easy_install or pip. We recommend pip.
$ pip install virtualenvTo create a virtualenv, select a folder where you want to work with the project and do the following:
$ virtualenv venvThat will create a virtual environment for python. To activate it do the following:
$ source venv/scripts/activateBefore installing the python dependencies, you will need to install postgresql and add the bin path to your environment.
Fist execute this command in order to install psycopg2 for windows
$ easy_install http://www.stickpeople.com/projects/python/win-psycopg/2.6.1/psycopg2-2.6.1.win32-py2.7-pg9.4.4-release.exeNow that you are in your venv, let's take care of project dependencies.
In the command line, go to the projects root folder and do the following:
$ pip install -r requirements.txtThis project uses environment variables to keep secret settings secret. To get started, you would need to copy the example.env file to a new file called .env in the same directory.
$ cp example.env .env$ python manage.py migrate$ python manage.py createsuperuser$ python manage.py runserver_plusGo to http://localhost:8000/admin in your browser and enter your credentials.
$ python manage.py test