|
34 | 34 | # See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/
|
35 | 35 |
|
36 | 36 | # SECURITY WARNING: keep the secret key used in production secret!
|
37 |
| -SECRET_KEY = 'qgw!j*bpxo7g&o1ux-(2ph818ojfj(3c#-#*_8r^8&hq5jg$3@' |
| 37 | +SECRET_KEY = "qgw!j*bpxo7g&o1ux-(2ph818ojfj(3c#-#*_8r^8&hq5jg$3@" |
38 | 38 |
|
39 | 39 | # SECURITY WARNING: don't run with debug turned on in production!
|
40 | 40 | DEBUG = True
|
|
45 | 45 | # Application definition
|
46 | 46 |
|
47 | 47 | INSTALLED_APPS = (
|
48 |
| - 'django.contrib.admin', |
49 |
| - 'django.contrib.auth', |
50 |
| - 'django.contrib.contenttypes', |
51 |
| - 'django.contrib.sessions', |
52 |
| - 'django.contrib.messages', |
53 |
| - 'django.contrib.staticfiles', |
54 |
| - 'helloworld' |
| 48 | + "django.contrib.admin", |
| 49 | + "django.contrib.auth", |
| 50 | + "django.contrib.contenttypes", |
| 51 | + "django.contrib.sessions", |
| 52 | + "django.contrib.messages", |
| 53 | + "django.contrib.staticfiles", |
| 54 | + "helloworld", |
55 | 55 | )
|
56 | 56 |
|
57 | 57 | MIDDLEWARE = (
|
58 |
| - 'django.middleware.security.SecurityMiddleware', |
59 |
| - 'django.contrib.sessions.middleware.SessionMiddleware', |
60 |
| - 'django.middleware.common.CommonMiddleware', |
61 |
| - 'django.middleware.csrf.CsrfViewMiddleware', |
62 |
| - 'django.contrib.auth.middleware.AuthenticationMiddleware', |
63 |
| - 'django.contrib.messages.middleware.MessageMiddleware', |
64 |
| - 'django.middleware.clickjacking.XFrameOptionsMiddleware', |
| 58 | + "django.middleware.security.SecurityMiddleware", |
| 59 | + "django.contrib.sessions.middleware.SessionMiddleware", |
| 60 | + "django.middleware.common.CommonMiddleware", |
| 61 | + "django.middleware.csrf.CsrfViewMiddleware", |
| 62 | + "django.contrib.auth.middleware.AuthenticationMiddleware", |
| 63 | + "django.contrib.messages.middleware.MessageMiddleware", |
| 64 | + "django.middleware.clickjacking.XFrameOptionsMiddleware", |
65 | 65 | )
|
66 | 66 |
|
67 |
| -ROOT_URLCONF = 'project_name.urls' |
| 67 | +ROOT_URLCONF = "project_name.urls" |
68 | 68 |
|
69 | 69 | TEMPLATES = [
|
70 | 70 | {
|
71 |
| - 'BACKEND': 'django.template.backends.django.DjangoTemplates', |
72 |
| - 'DIRS': [], |
73 |
| - 'APP_DIRS': True, |
74 |
| - 'OPTIONS': { |
75 |
| - 'context_processors': [ |
76 |
| - 'django.template.context_processors.debug', |
77 |
| - 'django.template.context_processors.request', |
78 |
| - 'django.contrib.auth.context_processors.auth', |
79 |
| - 'django.contrib.messages.context_processors.messages', |
| 71 | + "BACKEND": "django.template.backends.django.DjangoTemplates", |
| 72 | + "DIRS": [], |
| 73 | + "APP_DIRS": True, |
| 74 | + "OPTIONS": { |
| 75 | + "context_processors": [ |
| 76 | + "django.template.context_processors.debug", |
| 77 | + "django.template.context_processors.request", |
| 78 | + "django.contrib.auth.context_processors.auth", |
| 79 | + "django.contrib.messages.context_processors.messages", |
80 | 80 | ],
|
81 | 81 | },
|
82 | 82 | },
|
83 | 83 | ]
|
84 | 84 |
|
85 |
| -WSGI_APPLICATION = 'project_name.wsgi.application' |
| 85 | +WSGI_APPLICATION = "project_name.wsgi.application" |
86 | 86 |
|
87 | 87 |
|
88 | 88 | # Database
|
89 | 89 | # https://docs.djangoproject.com/en/1.8/ref/settings/#databases
|
90 | 90 |
|
91 | 91 | DATABASES = {
|
92 |
| - 'default': { |
93 |
| - 'ENGINE': 'django.db.backends.sqlite3', |
94 |
| - 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), |
| 92 | + "default": { |
| 93 | + "ENGINE": "django.db.backends.sqlite3", |
| 94 | + "NAME": os.path.join(BASE_DIR, "db.sqlite3"), |
95 | 95 | }
|
96 | 96 | }
|
97 | 97 |
|
98 | 98 |
|
99 | 99 | # Internationalization
|
100 | 100 | # https://docs.djangoproject.com/en/1.8/topics/i18n/
|
101 | 101 |
|
102 |
| -LANGUAGE_CODE = 'en-us' |
| 102 | +LANGUAGE_CODE = "en-us" |
103 | 103 |
|
104 |
| -TIME_ZONE = 'UTC' |
| 104 | +TIME_ZONE = "UTC" |
105 | 105 |
|
106 | 106 | USE_I18N = True
|
107 | 107 |
|
|
113 | 113 | # Static files (CSS, JavaScript, Images)
|
114 | 114 | # https://docs.djangoproject.com/en/1.8/howto/static-files/
|
115 | 115 |
|
116 |
| -STATIC_URL = '/static/' |
| 116 | +STATIC_URL = "/static/" |
0 commit comments