Enable AppConf to proxy global Django settings
developBy default, AppConf instances do not act as proxies for the global Django settings. To enable this behavior—allowing the AppConf instance to look up values in the global settings object (using the app's prefix)—set proxy = True within the inner Meta class of your AppConf subclass.
from appconf import AppConf
class MyAppConf(AppConf):
SETTING_1 = "one"
SETTING_2 = (
"two",
)
class Meta:
proxy = True
myapp_settings = MyAppConf()
# If proxy=True, this checks django.conf.settings.MYAPP_INSTALLED_APPS
if "myapp" in myapp_settings.INSTALLED_APPS:
print "yay, myapp is installed!"