-
Notifications
You must be signed in to change notification settings - Fork 3
/
settings.py
executable file
·63 lines (50 loc) · 1.53 KB
/
settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Django settings for Hunch applications
from djangoappengine.settings_base import *
import os
############
# Edit me! #
############
# your SECRET_KEY should be a unique 50 character string.
SECRET_KEY = '##################################################'
# you can use the following code to generate it:
# import string
# from random import choice
# print ''.join([choice(string.letters + string.digits + string.punctuation) for i in range(50)])
DEBUG = True
##################
# Don't touch me #
##################
DATABASES = {
'default': {
'ENGINE': 'dbindexer',
'TARGET': 'gae',
},
'gae': {
'ENGINE': 'djangoappengine.db',
},
}
INSTALLED_APPS = (
'djangoappengine',
'djangotoolbox',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'app',
)
MIDDLEWARE_CLASSES = (
'dbindexer.middleware.DBIndexerMiddleware',
'app.middleware.SmartAppendSlashMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
)
TEMPLATE_CONTEXT_PROCESSORS = (
'django.contrib.auth.context_processors.auth',
'django.core.context_processors.request',
)
ADMIN_MEDIA_PREFIX = '/media/admin/'
MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'media')
TEMPLATE_DIRS = (os.path.join(os.path.dirname(__file__), 'templates'),)
ROOT_URLCONF = 'urls'
APPEND_SLASH = False
SMART_APPEND_SLASH = True
DBINDEXER_SITECONF = 'dbindexes'