- Download
sudo apt-get install -y python3-venv
to create a virtual environment for python. - Write
python -m venv ~/env
. This will create a fileenv
in your home directory. - Write
source ~/env/bin/activate
to activate the environment. You will find(env)
at the beginning of your commnad line. [To deactivate writedeactivate
] - Now do
pip install django djangorestframework
. - Write
pip install postgres
to install the dbms software.
- Write
source ~/env/bin/activate
to activate the environment. You will find(env)
at the beginning of your commnad line.[If deactivated] - Write
python manage.py runserver
and the server is running at 127.0.0.1:8000 (generally). Also this address will be given is cli once the server is running.
Username = fantasy
password = fantasy