/settings.py

http://radioappz.googlecode.com/ · Python · 37 lines · 27 code · 9 blank · 1 comment · 0 complexity · 30c20a40b4624f5d9ca15f919055bd60 MD5 · raw file

  1. import os
  2. DEBUG = False
  3. TEMPLATE_DEBUG = DEBUG
  4. APPEND_SLASH = False
  5. LANGUAGE_CODE = 'en-us'
  6. SITE_ID = 1
  7. USE_I18N = True
  8. ADMIN_MEDIA_PREFIX = '/media/'
  9. SECRET_KEY = ''
  10. SESSION_ENGINE = 'sessions.backends.datastore'
  11. # List of callables that know how to import templates from various sources.
  12. TEMPLATE_LOADERS = (
  13. 'django.template.loaders.filesystem.load_template_source',
  14. 'django.template.loaders.app_directories.load_template_source',
  15. )
  16. MIDDLEWARE_CLASSES = (
  17. 'django.middleware.common.CommonMiddleware',
  18. 'django.contrib.sessions.middleware.SessionMiddleware',
  19. 'django.middleware.doc.XViewMiddleware',
  20. )
  21. INSTALLED_APPS = (
  22. 'django.contrib.sessions',
  23. )
  24. ROOT_URLCONF = 'urls'
  25. ROOT_PATH = os.path.dirname(__file__)
  26. TEMPLATE_DIRS = (
  27. os.path.join(ROOT_PATH, 'templates')
  28. )