Run the project on windows
-
Install python2.7 by downloading installer from internet. Link https://www.python.org/ftp/python/2.7.12/python-2.7.12.amd64.msi or https://www.python.org/ftp/python/2.7.12/python-2.7.12.msi
-
Now set python path in environment variables
-
Setup virtualenv
pip install virtualenv
Go to django project directory where manage.py available and run following commands
virtualenv venv -p (path of python.exe) .\venv\Scripts\activate.bat
-
Stay in to the same directory and run following commands to install dependecies
pip install -r requirements.txt python manage.py migrate python manage.py createsuperuser
-
Run the server
python manage.py runserver
-
Access at http://localhost:8000/
Run the project on Mac/Liunux
-
Install python2.7
sudo brew install python //For Mac sudo apt-get install python
//For Linux -
Now set python path in environment variables
-
Setup virtualenv
pip install virtualenv
Go to django project directory where manage.py available and run following commands
virtualenv venv -p python .\venv\Scripts\activate.bat
-
Stay in to the same directory and run following commands to install dependecies
pip install -r requirements.txt python manage.py migrate python manage.py createsuperuser
-
Run the server
python manage.py runserver
-
Access at http://localhost:8000/