Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 898 Bytes

README.md

File metadata and controls

37 lines (26 loc) · 898 Bytes

ROUS

How to set up project

  1. create virtual environment
python -m venv env
  1. activate on environment Windows (PS: check env file becuase Scrips folder can be named as bin instead of Scrips)
env\Scripts\Activate.ps1   (powershell- used in VS Code)
env\Scripts\activate.bat    (cmd)
  1. install django in the virtual environment.
pip install django
  1. install all the packages and used to update to new packages installed.
pip install -r requirements.txt

other: after installing new packages please update the requirements.txt shown below.

pip freeze > requirements.txt

For API,

First, in the my_django_app, activate the virtual environment with the command: env\Scripts\activate Next go into the ROUS directory, and then to run the server, do the command: python manage.py runserver