-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.py
71 lines (57 loc) · 1.96 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
64
65
66
67
68
69
70
71
import os
def relative(*x):
return os.path.join(os.path.abspath(os.path.dirname(__file__)), *x)
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
('Sergio Santos', 'me@sergiosantos.info'),
('Pedro Gaspar', 'pedro.gaxpar@gmail.com'),
)
MANAGERS = ADMINS
DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = relative('db/dev.db') # Or path to database file if using sqlite3.
DATABASE_USER = ''
DATABASE_PASSWORD = ''
DATABASE_HOST = '' # empty -> localhost
DATABASE_PORT = '' # empty -> default
SECRET_KEY = '%4)e8snda5-asdfsjx#sj0txw)mb%leue1_^paa=(ft)e'
TIME_ZONE = 'Europe/Lisbon' # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
LANGUAGE_CODE = 'pt-pt' # http://www.i18nguy.com/unicode/language-identifiers.html
SITE_ID = 1
USE_I18N = True
GOOGLE_KEY = 'ABQIAAAAtH2OpEQh5kqLXXFWWEtfehTl9j_UXDHp5ClTzN5bnExEyQ7YVxSATpB8VYuSg9gWWGlsDbaf8cUNdg'
EDITOR_FEED_URL = 'editor'
MEDIA_ROOT = relative('media/')
MEDIA_URL = '/media/'
ADMIN_MEDIA_PREFIX = '/media/admin/'
ROOT_URLCONF = 'urls'
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'django_evolution',
'captcha',
'tagging',
'directory'
)
TEMPLATE_DIRS = (
relative('templates'),
)
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.load_template_source',
'django.template.loaders.app_directories.load_template_source',
# 'django.template.loaders.eggs.load_template_source',
)
TEMPLATE_CONTEXT_PROCESSORS = (
'django.core.context_processors.auth',
'django.core.context_processors.media',
'django.core.context_processors.request',
'directory.context_processor.google_key',
)
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
)