forked from crccheck/django-object-actions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.py
82 lines (63 loc) · 2.11 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
# Django settings for example_project project.
import os
import dj_database_url
def project_dir(*paths):
base = os.path.realpath(os.path.dirname(__file__))
return os.path.join(base, *paths)
DEBUG = True
DATABASES = {
"default": dj_database_url.config(
default="sqlite:///" + project_dir("example_project.db")
)
}
DEFAULT_AUTO_FIELD = "django.db.models.AutoField"
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# In a Windows environment this must be set to your system time zone.
TIME_ZONE = "America/Chicago"
# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = "en-us"
SITE_ID = 1
USE_L10N = False
USE_TZ = False
STATIC_URL = "/static/"
SECRET_KEY = "lolimasekrit"
ROOT_URLCONF = "example_project.urls"
# DJANGO1.9 switch to only MIDDLEWARE
MIDDLEWARE_CLASSES = MIDDLEWARE = (
"django.contrib.sessions.middleware.SessionMiddleware",
"django.middleware.common.CommonMiddleware",
"django.middleware.csrf.CsrfViewMiddleware",
"django.contrib.auth.middleware.AuthenticationMiddleware",
"django.contrib.messages.middleware.MessageMiddleware",
"django.middleware.clickjacking.XFrameOptionsMiddleware",
)
INSTALLED_APPS = (
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sessions",
"django.contrib.sites",
"django.contrib.messages",
"django.contrib.staticfiles",
"django.contrib.admin",
"example_project.polls",
# my app
"django_object_actions",
# dev helpers
"django_extensions",
)
TEMPLATES = [
{
"BACKEND": "django.template.backends.django.DjangoTemplates",
"APP_DIRS": True,
"OPTIONS": {
"context_processors": [
"django.template.context_processors.request",
"django.contrib.auth.context_processors.auth",
"django.contrib.messages.context_processors.messages",
]
},
}
]