|
10 | 10 |
|
11 | 11 | # Build paths inside the project like this: os.path.join(BASE_DIR, ...) |
12 | 12 | import os |
| 13 | + |
13 | 14 | BASE_DIR = os.path.dirname(os.path.dirname(__file__)) |
14 | 15 |
|
15 | 16 |
|
16 | 17 | # Quick-start development settings - unsuitable for production |
17 | 18 | # See https://docs.djangoproject.com/en/dev/howto/deployment/checklist/ |
18 | 19 |
|
19 | 20 | # SECURITY WARNING: keep the secret key used in production secret! |
20 | | -SECRET_KEY = 'tkyw7bl$)5p*77#0$54ahp7lurux^c2=#j7h1l(o@gm9l@ts&6' |
| 21 | +SECRET_KEY = "tkyw7bl$)5p*77#0$54ahp7lurux^c2=#j7h1l(o@gm9l@ts&6" |
21 | 22 |
|
22 | 23 | # SECURITY WARNING: don't run with debug turned on in production! |
23 | 24 | DEBUG = True |
|
30 | 31 | # Application definition |
31 | 32 |
|
32 | 33 | INSTALLED_APPS = ( |
33 | | - 'django.contrib.staticfiles', |
34 | | - 'osm_field', |
35 | | - 'example', |
| 34 | + "django.contrib.staticfiles", |
| 35 | + "osm_field", |
| 36 | + "example", |
36 | 37 | ) |
37 | 38 |
|
38 | 39 | MIDDLEWARE_CLASSES = ( |
39 | | - 'django.middleware.common.CommonMiddleware', |
40 | | - 'django.middleware.csrf.CsrfViewMiddleware', |
41 | | - 'django.middleware.clickjacking.XFrameOptionsMiddleware', |
| 40 | + "django.middleware.common.CommonMiddleware", |
| 41 | + "django.middleware.csrf.CsrfViewMiddleware", |
| 42 | + "django.middleware.clickjacking.XFrameOptionsMiddleware", |
42 | 43 | ) |
43 | 44 |
|
44 | | -ROOT_URLCONF = 'example.urls' |
| 45 | +ROOT_URLCONF = "example.urls" |
45 | 46 |
|
46 | | -WSGI_APPLICATION = 'example.wsgi.application' |
| 47 | +WSGI_APPLICATION = "example.wsgi.application" |
47 | 48 |
|
48 | 49 |
|
49 | 50 | # Database |
50 | 51 | # https://docs.djangoproject.com/en/dev/ref/settings/#databases |
51 | 52 |
|
52 | 53 | DATABASES = { |
53 | | - 'default': { |
54 | | - 'ENGINE': 'django.db.backends.sqlite3', |
55 | | - 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), |
| 54 | + "default": { |
| 55 | + "ENGINE": "django.db.backends.sqlite3", |
| 56 | + "NAME": os.path.join(BASE_DIR, "db.sqlite3"), |
56 | 57 | } |
57 | 58 | } |
58 | 59 |
|
59 | 60 | # Internationalization |
60 | 61 | # https://docs.djangoproject.com/en/dev/topics/i18n/ |
61 | 62 |
|
62 | | -LANGUAGE_CODE = 'en-us' |
| 63 | +LANGUAGE_CODE = "en-us" |
63 | 64 |
|
64 | | -TIME_ZONE = 'UTC' |
| 65 | +TIME_ZONE = "UTC" |
65 | 66 |
|
66 | 67 | USE_I18N = True |
67 | 68 |
|
|
73 | 74 | # Static files (CSS, JavaScript, Images) |
74 | 75 | # https://docs.djangoproject.com/en/dev/howto/static-files/ |
75 | 76 |
|
76 | | -STATIC_URL = '/static/' |
| 77 | +STATIC_URL = "/static/" |
77 | 78 |
|
78 | 79 | TEMPLATES = [ |
79 | 80 | { |
80 | | - 'BACKEND': 'django.template.backends.django.DjangoTemplates', |
81 | | - 'APP_DIRS': True, |
82 | | - 'OPTIONS': { |
83 | | - 'context_processors': [ |
84 | | - 'django.template.context_processors.debug', |
85 | | - 'django.template.context_processors.request', |
| 81 | + "BACKEND": "django.template.backends.django.DjangoTemplates", |
| 82 | + "APP_DIRS": True, |
| 83 | + "OPTIONS": { |
| 84 | + "context_processors": [ |
| 85 | + "django.template.context_processors.debug", |
| 86 | + "django.template.context_processors.request", |
86 | 87 | ], |
87 | 88 | }, |
88 | 89 | }, |
|
0 commit comments