/settings.py

http://google-app-engine-django.googlecode.com/ · Python · 109 lines · 40 code · 21 blank · 48 comment · 0 complexity · 6d03631362ff6b18dd183bd40f33a310 MD5 · raw file

  1. # Copyright 2008 Google Inc.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. # Django settings for google-app-engine-django project.
  15. import os
  16. DEBUG = True
  17. TEMPLATE_DEBUG = DEBUG
  18. ADMINS = (
  19. # ('Your Name', 'your_email@domain.com'),
  20. )
  21. MANAGERS = ADMINS
  22. DATABASE_ENGINE = 'appengine' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
  23. DATABASE_NAME = '' # Or path to database file if using sqlite3.
  24. DATABASE_USER = '' # Not used with sqlite3.
  25. DATABASE_PASSWORD = '' # Not used with sqlite3.
  26. DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
  27. DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
  28. # Local time zone for this installation. Choices can be found here:
  29. # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
  30. # although not all choices may be available on all operating systems.
  31. # If running in a Windows environment this must be set to the same as your
  32. # system time zone.
  33. TIME_ZONE = 'UTC'
  34. # Language code for this installation. All choices can be found here:
  35. # http://www.i18nguy.com/unicode/language-identifiers.html
  36. LANGUAGE_CODE = 'en-us'
  37. SITE_ID = 1
  38. # If you set this to False, Django will make some optimizations so as not
  39. # to load the internationalization machinery.
  40. USE_I18N = True
  41. # Absolute path to the directory that holds media.
  42. # Example: "/home/media/media.lawrence.com/"
  43. MEDIA_ROOT = ''
  44. # URL that handles the media served from MEDIA_ROOT. Make sure to use a
  45. # trailing slash if there is a path component (optional in other cases).
  46. # Examples: "http://media.lawrence.com", "http://example.com/media/"
  47. MEDIA_URL = ''
  48. # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
  49. # trailing slash.
  50. # Examples: "http://foo.com/media/", "/media/".
  51. ADMIN_MEDIA_PREFIX = '/media/'
  52. # Make this unique, and don't share it with anybody.
  53. SECRET_KEY = 'hvhxfm5u=^*v&doo#oq8x*eg8+1&9sxbye@=umutgn^t_sg_nx'
  54. # Ensure that email is not sent via SMTP by default to match the standard App
  55. # Engine SDK behaviour. If you want to sent email via SMTP then add the name of
  56. # your mailserver here.
  57. EMAIL_HOST = ''
  58. # List of callables that know how to import templates from various sources.
  59. TEMPLATE_LOADERS = (
  60. 'django.template.loaders.filesystem.load_template_source',
  61. 'django.template.loaders.app_directories.load_template_source',
  62. # 'django.template.loaders.eggs.load_template_source',
  63. )
  64. MIDDLEWARE_CLASSES = (
  65. 'django.middleware.common.CommonMiddleware',
  66. # 'django.contrib.sessions.middleware.SessionMiddleware',
  67. # 'django.contrib.auth.middleware.AuthenticationMiddleware',
  68. # 'django.middleware.doc.XViewMiddleware',
  69. )
  70. TEMPLATE_CONTEXT_PROCESSORS = (
  71. # 'django.core.context_processors.auth',
  72. 'django.core.context_processors.debug',
  73. 'django.core.context_processors.i18n',
  74. # 'django.core.context_processors.media', # 0.97 only.
  75. # 'django.core.context_processors.request',
  76. )
  77. ROOT_URLCONF = 'urls'
  78. ROOT_PATH = os.path.dirname(__file__)
  79. TEMPLATE_DIRS = (
  80. os.path.join(ROOT_PATH, 'templates')
  81. )
  82. INSTALLED_APPS = (
  83. 'appengine_django',
  84. # 'django.contrib.auth',
  85. # 'django.contrib.contenttypes',
  86. # 'django.contrib.sessions',
  87. # 'django.contrib.sites',
  88. )