Commits

Anonymous committed 2878788

Comitted settings.py.

  • Participants
  • Parent commits 5fdb0d1

Comments (0)

Files changed (4)

 *.orig
 .google_appengine
 **/.svn
-gaebar
-settings.py
 
 syntax: regexp
 (.*/)?\#[^/]*\#$

File handson/common/appenginepatch/mediautils/settings.py

+from ragendja.settings_post import *
+if not on_production_server and MEDIA_URL.startswith('/'):
+    if ADMIN_MEDIA_PREFIX.startswith(MEDIA_URL):
+        ADMIN_MEDIA_PREFIX = '/generated_media' + ADMIN_MEDIA_PREFIX
+    MEDIA_URL = '/generated_media' + MEDIA_URL

File handson/common/django_aep_export/admin_media/settings.py

+from ragendja.settings_post import *
+
+add_uncombined_app_media(globals(), 'django_aep_export.admin_media')

File handson/settings.py

+# -*- coding: utf-8 -*-
+from ragendja.settings_pre import *
+
+# Increase this when you update your media on the production site, so users
+# don't have to refresh their cache. By setting this your MEDIA_URL
+# automatically becomes /media/MEDIA_VERSION/
+def register_x_max_ja():
+    "workaround of 'Caught an exception while rendering: unknown encoding: X-MAC-JAPANESE'"
+    import codecs
+    from encodings.utf_8 import getregentry
+    codecs.register(lambda name: getregentry() if name == 'x-mac-japanese' else None)
+
+register_x_max_ja()
+
+MEDIA_VERSION = 1
+
+# Make this unique, and don't share it with anybody.
+SECRET_KEY = '1234567890asdfjklasdfjkalsdfjklasdf'
+
+#ENABLE_PROFILER = True
+#ONLY_FORCED_PROFILE = True
+#PROFILE_PERCENTAGE = 25
+#SORT_PROFILE_RESULTS_BY = 'cumulative' # default is 'time'
+#PROFILE_PATTERN = 'ext.db..+\((?:get|get_by_key_name|fetch|count|put)\)'
+
+# Enable I18N and set default language to 'en'
+USE_I18N = True
+LANGUAGE_CODE = 'en'
+
+#Restrict supported languages (and JS media generation)
+#LANGUAGES = (
+#    ('de', 'German'),
+#    ('en', 'English'),
+#)
+
+TEMPLATE_CONTEXT_PROCESSORS = (
+    'django.core.context_processors.auth',
+    'django.core.context_processors.media',
+    'django.core.context_processors.request',
+    'django.core.context_processors.i18n',
+)
+
+MIDDLEWARE_CLASSES = (
+    'django.contrib.sessions.middleware.SessionMiddleware',
+    # Django authentication
+    #'django.contrib.auth.middleware.AuthenticationMiddleware',
+    # Google authentication
+    'ragendja.auth.middleware.GoogleAuthenticationMiddleware',
+    # Hybrid Django/Google authentication
+    #'ragendja.auth.middleware.HybridAuthenticationMiddleware',
+    'django.middleware.common.CommonMiddleware',
+    'django.middleware.locale.LocaleMiddleware',
+    'ragendja.sites.dynamicsite.DynamicSiteIDMiddleware',
+    'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
+    'django.contrib.redirects.middleware.RedirectFallbackMiddleware',
+)
+
+# Google authentication
+AUTH_USER_MODULE = 'ragendja.auth.google_models'
+AUTH_ADMIN_MODULE = 'ragendja.auth.google_admin'
+# Hybrid Django/Google authentication
+#AUTH_USER_MODULE = 'ragendja.auth.hybrid_models'
+
+GLOBALTAGS = (
+    'ragendja.templatetags.ragendjatags',
+    'django.templatetags.i18n',
+)
+
+LOGIN_URL = '/account/login/'
+LOGOUT_URL = '/account/logout/'
+LOGIN_REDIRECT_URL = '/'
+
+INSTALLED_APPS = (
+    'django.contrib.auth',
+    'django.contrib.sessions',
+    'django.contrib.admin',
+    'django.contrib.webdesign',
+    'django.contrib.flatpages',
+    'django.contrib.redirects',
+    'django.contrib.sites',
+    'appenginepatcher',
+    'polls',
+#    'myapp',
+#    'registration',
+#    'mediautils',
+)
+
+# List apps which should be left out from app settings and urlsauto loading
+IGNORE_APP_SETTINGS = IGNORE_APP_URLSAUTO = (
+    # Example:
+    # 'django.contrib.admin',
+    # 'django.contrib.auth',
+    # 'yetanotherapp',
+)
+
+from ragendja.settings_post import *