cd Ecommerce-api
python -m venv .venv
# in Windows
.venv/scripts/activate
# in Linux/Mac
source .venv/bin/activate
pip install -r requirements.txt
SECRET_KEY = 'Your secret key'
DEBUG = True
ALLOWED_HOSTS = 127.0.0.1, localhost, 0.0.0.0
- You can generate the secret key using https://djecrety.ir
python manage.py makemigrations
python manage.py migrate
python manage.py loaddata group.json
python manage.py createsuperuser
python manage.py runserver