Django Get Settings

[Solved] Django Get Settings | Shell - Code Explorer | yomemimo.com
Question : django get settings

Answered by : panicky-pintail-ytxt50xqiql9

from django.conf import settings
settings.VARIABLE_NAME
# NOTE - VARIABLE should be in capital letter.
# It will not work otherwise.

Source : https://stackoverflow.com/questions/7867797/how-do-i-reference-a-django-settings-variable-in-my-models-py | Last Update : Tue, 21 Sep 21

Answers related to django get settings

Code Explorer Popular Question For Shell