Python version
Python 3.10.12
Go to the backend directory.
cd backend
Create virtual environment and activate
Create
py -m venv my_virtual_env_name
Activate
my_virtual_env_name\Scripts\activate
Create
python -m venv my_virtual_env_name
Activate
source my_virtual_env_name/bin/activate
Install depencies
pip install -r requirements.txt
Run the Shell
file like below:
./migrations.sh
or manually migrate like below:
Migrate
python manage.py makemigrations
This will make migrations for all the application models.
python manage.py migrate
This will migrate all the application models.
Create super user
python manage.py createsuperuser
Then prompt will ask username, email, and password for the super user.
Run the project
python manage.py runserver
This will run the project on localhost:8000
or 127.0.0.1:8000
address. Open this address on your web browser.