Reputation: 509
I have three settings files in my project:
settings.py
#common settings
development.py
#settings for development
from settings import *
SOME_VARIABLE = some_value1
production.py
#settings for production
from settings import *
SOME_VARIABLE = some_value2
I would like import SOME_VARIABLE in my django app.
Upvotes: 0
Views: 115
Reputation: 62888
In your apps you should use settings like this:
from django.conf import settings
...
settings.SOME_VARIABLE
You should not worry where they come from.
Upvotes: 1