pathagar
pathagar copied to clipboard
Use `django.conf.settings` for settings import
The recommended way of accessing django settings is to allow custom settings files. This can be done by importing from django.conf import settings and checking values by settings.DEBUG.
https://docs.djangoproject.com/en/1.8/topics/settings/#using-settings-in-python-code