set guestbook StringProperty to be indexed=False
[gae-samples.git] / django_example / settings.py
bloba35544ea85c0e304f86347eb24b5cd6f529d80e0
1 # Copyright 2008 Google Inc.
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
15 # Django settings for this project.
17 import os
19 DEBUG = True
20 TEMPLATE_DEBUG = DEBUG
22 ADMINS = ()
24 MANAGERS = ADMINS
26 DATABASE_ENGINE = '' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
27 DATABASE_NAME = '' # Or path to database file if using sqlite3.
28 DATABASE_USER = '' # Not used with sqlite3.
29 DATABASE_PASSWORD = '' # Not used with sqlite3.
30 DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
31 DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
33 # Local time zone for this installation. Choices can be found here:
34 # http://www.postgresql.org/docs/8.1/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
35 # although not all variations may be possible on all operating systems.
36 # If running in a Windows environment this must be set to the same as your
37 # system time zone.
38 TIME_ZONE = 'America/Los_Angeles' # i.e., Mountain View
40 # Language code for this installation. All choices can be found here:
41 # http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
42 # http://blogs.law.harvard.edu/tech/stories/storyReader$15
43 LANGUAGE_CODE = 'en-us'
45 SITE_ID = 1
47 # If you set this to False, Django will make some optimizations so as not
48 # to load the internationalization machinery.
49 USE_I18N = False
51 # Absolute path to the directory that holds media.
52 # Example: "/home/media/media.lawrence.com/"
53 MEDIA_ROOT = ''
55 # URL that handles the media served from MEDIA_ROOT.
56 # Example: "http://media.lawrence.com"
57 MEDIA_URL = ''
59 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
60 # trailing slash.
61 # Examples: "http://foo.com/media/", "/media/".
62 ADMIN_MEDIA_PREFIX = '/media/'
64 # Whether to append trailing slashes to URLs.
65 APPEND_SLASH = False
67 # Make this unique, and don't share it with anybody.
68 SECRET_KEY = 'hubba-hubba'
70 # List of callables that know how to import templates from various sources.
71 TEMPLATE_LOADERS = (
72 'django.template.loaders.filesystem.load_template_source',
75 MIDDLEWARE_CLASSES = (
78 ROOT_URLCONF = 'urls'
80 TEMPLATE_DIRS = (
81 os.path.join(os.path.dirname(__file__), 'templates'),
82 # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
83 # Always use forward slashes, even on Windows.
84 # Don't forget to use absolute paths, not relative paths.
87 INSTALLED_APPS = (
88 'django.contrib.admin',
89 'django.contrib.contenttypes',