PageRenderTime 22ms CodeModel.GetById 10ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/settings.py

http://google-app-engine-django.googlecode.com/
Python | 109 lines | 84 code | 7 blank | 18 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
 15# Django settings for google-app-engine-django project.
 16
 17import os
 18
 19DEBUG = True
 20TEMPLATE_DEBUG = DEBUG
 21
 22ADMINS = (
 23    # ('Your Name', 'your_email@domain.com'),
 24)
 25
 26MANAGERS = ADMINS
 27
 28DATABASE_ENGINE = 'appengine'  # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
 29DATABASE_NAME = ''             # Or path to database file if using sqlite3.
 30DATABASE_USER = ''             # Not used with sqlite3.
 31DATABASE_PASSWORD = ''         # Not used with sqlite3.
 32DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
 33DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
 34
 35# Local time zone for this installation. Choices can be found here:
 36# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
 37# although not all choices may be available on all operating systems.
 38# If running in a Windows environment this must be set to the same as your
 39# system time zone.
 40TIME_ZONE = 'UTC'
 41
 42# Language code for this installation. All choices can be found here:
 43# http://www.i18nguy.com/unicode/language-identifiers.html
 44LANGUAGE_CODE = 'en-us'
 45
 46SITE_ID = 1
 47
 48# If you set this to False, Django will make some optimizations so as not
 49# to load the internationalization machinery.
 50USE_I18N = True
 51
 52# Absolute path to the directory that holds media.
 53# Example: "/home/media/media.lawrence.com/"
 54MEDIA_ROOT = ''
 55
 56# URL that handles the media served from MEDIA_ROOT. Make sure to use a
 57# trailing slash if there is a path component (optional in other cases).
 58# Examples: "http://media.lawrence.com", "http://example.com/media/"
 59MEDIA_URL = ''
 60
 61# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
 62# trailing slash.
 63# Examples: "http://foo.com/media/", "/media/".
 64ADMIN_MEDIA_PREFIX = '/media/'
 65
 66# Make this unique, and don't share it with anybody.
 67SECRET_KEY = 'hvhxfm5u=^*v&doo#oq8x*eg8+1&9sxbye@=umutgn^t_sg_nx'
 68
 69# Ensure that email is not sent via SMTP by default to match the standard App
 70# Engine SDK behaviour. If you want to sent email via SMTP then add the name of
 71# your mailserver here.
 72EMAIL_HOST = ''
 73
 74# List of callables that know how to import templates from various sources.
 75TEMPLATE_LOADERS = (
 76    'django.template.loaders.filesystem.load_template_source',
 77    'django.template.loaders.app_directories.load_template_source',
 78#     'django.template.loaders.eggs.load_template_source',
 79)
 80
 81MIDDLEWARE_CLASSES = (
 82    'django.middleware.common.CommonMiddleware',
 83#    'django.contrib.sessions.middleware.SessionMiddleware',
 84#    'django.contrib.auth.middleware.AuthenticationMiddleware',
 85#    'django.middleware.doc.XViewMiddleware',
 86)
 87
 88TEMPLATE_CONTEXT_PROCESSORS = (
 89#   'django.core.context_processors.auth',
 90    'django.core.context_processors.debug',
 91    'django.core.context_processors.i18n',
 92#    'django.core.context_processors.media',  # 0.97 only.
 93#    'django.core.context_processors.request',
 94)
 95
 96ROOT_URLCONF = 'urls'
 97
 98ROOT_PATH = os.path.dirname(__file__)
 99TEMPLATE_DIRS = (
100    os.path.join(ROOT_PATH, 'templates')
101)
102
103INSTALLED_APPS = (
104     'appengine_django',
105#    'django.contrib.auth',
106#    'django.contrib.contenttypes',
107#    'django.contrib.sessions',
108#    'django.contrib.sites',
109)