]> git.0d.be Git - panikweb.git/blobdiff - panikweb/settings.py
move static & templates to panikweb project directory
[panikweb.git] / panikweb / settings.py
index 44cc1214dd411fe857e172ae7176a4c019452855..9bcb2fc12481820f65479ce7b042bb95d82f7cf5 100644 (file)
@@ -88,9 +88,11 @@ STATICFILES_DIRS = (
 STATICFILES_FINDERS = (
     'django.contrib.staticfiles.finders.FileSystemFinder',
     'django.contrib.staticfiles.finders.AppDirectoriesFinder',
+    'gadjo.finders.XStaticFinder',
 #    'django.contrib.staticfiles.finders.DefaultStorageFinder',
 )
 
+
 # Make this unique, and don't share it with anybody.
 SECRET_KEY = '3qm&@6264-=st16)7_xa*ds+31e0mqqs@+*!ud7gzt$tq!b^qn'
 
@@ -112,7 +114,7 @@ TEMPLATES = [
     {
         'BACKEND': 'django.template.backends.django.DjangoTemplates',
         'DIRS': [
-            os.path.join(PROJECT_DIR, 'panikweb_templates'),
+            os.path.join(PROJECT_DIR, 'panikweb', 'templates'),
         ],
         'APP_DIRS': True,
         'OPTIONS': {
@@ -126,6 +128,9 @@ TEMPLATES = [
                 'django.template.context_processors.tz',
                 'panikweb.context_processors.panikweb',
             ],
+            'builtins': [
+                'combo.public.templatetags.combo',
+            ],
         },
     },
 ]
@@ -150,7 +155,7 @@ INSTALLED_APPS = (
     'django.contrib.admindocs',
     'haystack',
     'taggit',
-    'panikweb_templates',
+    'gadjo',
     'panikweb.paniktags',
     'sorl.thumbnail',
     'ckeditor',
@@ -160,10 +165,11 @@ INSTALLED_APPS = (
     'combo.data',
     'combo.public',
     'combo.profile',
+    'combo.apps.assets',
     'combo.apps.dashboard',
+    'combo.apps.gallery',
     'combo.apps.search',
     'panikombo',
-    'gallery',
 )
 
 CKEDITOR_UPLOAD_PATH = os.path.join(MEDIA_ROOT, 'uploads')
@@ -235,7 +241,10 @@ LANGUAGE_COOKIE_NAME = 'panikweb_language'
 TEMPLATE_VARS = {}
 
 COMBO_DASHBOARD_ENABLED = False
+COMBO_MAP_TILE_URLTEMPLATE = ''
+COMBO_MAP_ATTRIBUTION = ''
 JSON_CELL_TYPES = {}
+COMBO_CELL_ASSET_SLOTS = {}
 
 RADIO_NAME = 'Radio Panik'
 RADIO_LONG_NAME = 'Radio Panik - 105.4 FM'
@@ -244,10 +253,11 @@ WEBSITE_BASE_URL = 'http://www.radiopanik.org/'
 COMBO_INITIAL_LOGIN_PAGE_PATH = '/'
 COMBO_WELCOME_PAGE_PATH = None
 
-try:
-    from .local_settings import *
-except ImportError as e:
-    pass
+local_settings_file = os.environ.get(
+    'PANIKWEB_SETTINGS_FILE', os.path.join(os.path.dirname(__file__), 'local_settings.py')
+)
+if os.path.exists(local_settings_file):
+    exec(open(local_settings_file).read())
 
 if DEBUG and DEBUG_TOOLBAR:
     MIDDLEWARE_CLASSES += (