Skip to content

mefardales/dj-multiple-settings-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dj-multiple-settings-config

Django configuration, focusing specifically on the management of multiple settings for projects that demand scalability.

📍Remenber set env varible DJANGO_SETTINGS_MODULE

🟢 Linux

In this case is for dev enviroment

export DJANGO_SETTINGS_MODULE=core.settings.dev

🟢 Windows

In this other example the configuration is for prod enviroment

setx DJANGO_SETTINGS_MODULE "core.settings.prod"

📍 Error: "A server error occurred. Please contact the administrator."

If you face the error mentioned above, ensure that the DEBUG setting is set to False in the dev.py file. Additionally, verify that the environment variable is correctly configured with export DJANGO_SETTINGS_MODULE=core.settings.dev

🎖️Link for full explanation.

About

Django configuration, focusing specifically on the management of multiple settings for projects that demand scalability.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages