- Run
python manage.py setup
to install all requirements and create a virtual environment. Follow the output instructions to activate the virtual environment.
-
Windows
env\scripts\activate
-
Linux -
source env/scripts/activate
- install the dependencies using the command:
pip install -r requirements.txt
- Import dummy data to sqlite DB
python manage.py loaddata data.json
- Run Makemigrations and migrate command
-
python manage.py makemigrations
-
python manage.py migrate
- Startup server with the command:
python manage.py runserver
-
install python3-pip python3-dev and Gunicorn on the server
-
install and active the virtual environment
-
install all the dependencies in requirements.txt
pip install -r requirements.txt