This repository has been archived by the owner on Jan 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
settings.py
106 lines (79 loc) · 2.3 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# coding: utf-8
"""
testproject.settings
~~~~~~~~~~~~~~~~~~~~~~
IMPORTANT:
You should not edit this file!
Overwrite settings with a local settings file:
local_settings.py
more info:
http://code.google.com/p/django-sync-server/wiki/WeaveSettings
Here are not all settings predefined you can use. Please look at the
django documentation for a full list of all items:
http://www.djangoproject.com/documentation/settings/
Last commit info:
~~~~~~~~~~~~~~~~~
$LastChangedDate:$
$Rev:$
$Author: JensDiemer $
:copyleft: 2010 by the django-sync-server team, see AUTHORS for more details.
:license: GNU GPL v3 or above, see LICENSE for more details.
"""
import os
import sys
try:
#from django_tools.utils import info_print;info_print.redirect_stdout()
import django
import weave
except Exception, e:
import traceback
print "-" * 79
sys.stderr.write(traceback.format_exc())
print "-" * 79
raise
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = ()
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(PROJECT_ROOT, 'test.db3')
}
}
TIME_ZONE = "UTC"
LANGUAGE_CODE = 'en-us'
SITE_ID = 1
USE_I18N = True
MEDIA_ROOT = ''
MEDIA_URL = ''
ADMIN_MEDIA_PREFIX = '/media/'
SECRET_KEY = "Make this unique, and don't share it with anybody!"
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.transaction.TransactionMiddleware',
)
LOGIN_URL = "admin"
ROOT_URLCONF = 'testproject.urls'
TEMPLATE_DIRS = (
os.path.join(os.path.abspath(os.path.dirname(django.__file__)), "contrib/admin/templates"),
os.path.join(PROJECT_ROOT, "templates"),
)
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'django.contrib.admindocs',
"weave",
)
from weave import app_settings as WEAVE
try:
from local_settings import *
except ImportError:
pass