python manage.py runserver- panel
- hostname
/admin
- hostname
- API Documentation(Swagger)
- hostname
/api/swagger/
- hostname
-
after adding/moving/changing a model you have to make a migration
python manage.py makemigrations -
and then apply it:
python manage.py migrate
-
install python3x and pip
sudo apt-install python3-pip -
Create a
venvin the root folderpython3 -m venv venv -
Activate virtual environment:
-
Linux:
source venv/bin/activate -
Windows:
venv\Scripts\activate.bat
-
-
Upgrade pip:
pip install -U pipor
python -m pip install --upgrade pip -
Install requirements:
pip install -U -r requirements.txt -
Make a copy of
.env.templateand name it.env. Then change variables according to your environment -
Add migrations:
python manage.py migrate -
Create admin account:
python manage.py createsuperuser --email [email protected] --username admin -
Run:
python manage.py runserver