RuslanSlepuhin / server_bot

0 stars 3 forks source link

Add a command to auto create a duplicate settings file. #327

Open Mixail132 opened 2 weeks ago

Mixail132 commented 2 weeks ago

Description:

The duplicate settings file is needed to run the Django app in a developing mode and use tge standart DRF web interface when developing.

smbd1368 commented 2 weeks ago

my_project/ │ ├── my_project/ │ ├── init.py │ ├── settings.py # Optional: keep this as the base settings │ ├── settings_dev.py # Development settings │ ├── settings_prod.py # Production settings

export DJANGO_SETTINGS_MODULE=my_project.settings_dev python manage.py runserver