INSTALLED_APPS += ('debug_toolbar', ) INTERNAL_IPS = ('127.0.0.1', '10.0.2.2',) DEBUG_TOOLBAR_CONFIG = { 'DISABLE_PANELS': [ 'debug_toolbar.panels.redirects.RedirectsPanel', ], 'SHOW_TEMPLATE_CONTEXT': True, } # django-extensions # ------------------------------------------------------------------------------ INSTALLED_APPS += ('django_extensions', ) # TESTING # ------------------------------------------------------------------------------ TEST_RUNNER = 'django.test.runner.DiscoverRunner' # Your local stuff: Below this line define 3rd party library settings # For additional campaigns import a campaigns dictionary from stoqs/campaigns.py # which can be a symbolic link to a file configured for a specific installation. try: from campaigns import campaigns for campaign in campaigns.keys(): DATABASES[campaign] = DATABASES.get('default').copy() DATABASES[campaign]['NAME'] = campaign except: pass
'DISABLE_PANELS': [ 'debug_toolbar.panels.redirects.RedirectsPanel', ], 'SHOW_TEMPLATE_CONTEXT': True, } # django-extensions # ------------------------------------------------------------------------------ INSTALLED_APPS += ('django_extensions', ) # TESTING # ------------------------------------------------------------------------------ TEST_RUNNER = 'django.test.runner.DiscoverRunner' # Your local stuff: Below this line define 3rd party library settings # Home page link, logo and alt text - HOME_PAGE_LOGO must be in STATIC_URL/images HOME_PAGE_LINK = env('HOME_PAGE_LINK', default='http://www.mbari.org') HOME_PAGE_LOGO = env('HOME_PAGE_LOGO', default='new_mbari_logo.png') HOME_PAGE_ALT = env('HOME_PAGE_LOGO', default='MBARI') # For additional campaigns import a campaigns dictionary from stoqs/campaigns.py # which can be a symbolic link to a file configured for a specific installation. try: from campaigns import campaigns for campaign in campaigns.keys(): DATABASES[campaign] = DATABASES.get('default').copy() DATABASES[campaign]['NAME'] = campaign except Exception: pass
'SHOW_TEMPLATE_CONTEXT': True, } # django-extensions # ------------------------------------------------------------------------------ INSTALLED_APPS += ('django_extensions', ) # TESTING # ------------------------------------------------------------------------------ TEST_RUNNER = 'django.test.runner.DiscoverRunner' # Your local stuff: Below this line define 3rd party library settings # Home page link, logo and alt text - HOME_PAGE_LOGO must be in STATIC_URL/images HOME_PAGE_LINK = env('HOME_PAGE_LINK', default='http://www.mbari.org') HOME_PAGE_LOGO = env('HOME_PAGE_LOGO', default='new_mbari_logo.png') HOME_PAGE_ALT = env('HOME_PAGE_LOGO', default='MBARI') # For additional campaigns import a campaigns dictionary from stoqs/campaigns.py # which can be a symbolic link to a file configured for a specific installation. try: from campaigns import campaigns for campaign in list(campaigns.keys()): DATABASES[campaign] = DATABASES.get('default').copy() DATABASES[campaign]['NAME'] = campaign MAPSERVER_DATABASES[campaign] = MAPSERVER_DATABASES.get('default').copy() MAPSERVER_DATABASES[campaign]['NAME'] = campaign except Exception: pass