You can easily achieve this.
Following is the folder structure:
> config/
settings.py
production.py
development.py
Now in settings.py:
RUNNING_MODE = "production" # could also be "development", set manually
if ENVIRONMENT == "production":
from production import *
elif ENVIRONMENT == "development":
from development import *
Keep all your environment dependent settings in individual files.
And then, in views.py or any other file in project.
from config.settings import LOG_LEVEL