Turn off Execution Policy Temporarily
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope Process
Create a Virtual Environment
py -m venv env
Activate the Virtual Environment
env\Scripts\Activate.ps1
Deactivate the Virtual Envirtonment
deactivate
pip install django
cd seirvice
Dependencies are installed using pip
pip freeze > requirements.txt
pip install -r requirements.txt
The database will be on Postgresql
sudo apt install postgresql
sudo service postgresql start
sudo -i -u postgres
psql
CREATE DATABASE seirvice_db;
CREATE ROLE seirvice_user WITH LOGIN PASSWORD 'password';
GRANT ALL PRIVILEGES ON DATABASE seirvice_db TO seirvice_user;
\c seirvice_db
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
quit
\q
psql -h localhost -p 5432 -U seirvice_user -W -d seirvice_db
py manage.py makemigrations
py manage.py migrate
py manage.py runserver