|
22 | 22 | # See https://docs.djangoproject.com/en/5.0/howto/deployment/checklist/
|
23 | 23 |
|
24 | 24 | # SECURITY WARNING: keep the secret key used in production secret!
|
25 |
| -SECRET_KEY = 'django-insecure-&k&_wb5#iu4c9kwfrm^o7d6xwk965nsdmxo%d!k94fagg^ht1#' |
| 25 | +SECRET_KEY = "django-insecure-&k&_wb5#iu4c9kwfrm^o7d6xwk965nsdmxo%d!k94fagg^ht1#" |
26 | 26 |
|
27 | 27 | # SECURITY WARNING: don't run with debug turned on in production!
|
28 | 28 | DEBUG = True
|
|
33 | 33 | # Application definition
|
34 | 34 |
|
35 | 35 | INSTALLED_APPS = [
|
36 |
| - 'django.contrib.admin', |
37 |
| - 'django.contrib.auth', |
38 |
| - 'django.contrib.contenttypes', |
39 |
| - 'django.contrib.sessions', |
40 |
| - 'django.contrib.messages', |
41 |
| - 'django.contrib.staticfiles', |
42 |
| - 'todo', |
43 |
| - 'rest_framework', |
| 36 | + "django.contrib.admin", |
| 37 | + "django.contrib.auth", |
| 38 | + "django.contrib.contenttypes", |
| 39 | + "django.contrib.sessions", |
| 40 | + "django.contrib.messages", |
| 41 | + "django.contrib.staticfiles", |
| 42 | + "todo", |
| 43 | + "rest_framework", |
44 | 44 | ]
|
45 | 45 |
|
46 | 46 | MIDDLEWARE = [
|
47 |
| - 'django.middleware.security.SecurityMiddleware', |
48 |
| - 'django.contrib.sessions.middleware.SessionMiddleware', |
49 |
| - 'django.middleware.common.CommonMiddleware', |
50 |
| - 'django.middleware.csrf.CsrfViewMiddleware', |
51 |
| - 'django.contrib.auth.middleware.AuthenticationMiddleware', |
52 |
| - 'django.contrib.messages.middleware.MessageMiddleware', |
53 |
| - 'django.middleware.clickjacking.XFrameOptionsMiddleware', |
| 47 | + "django.middleware.security.SecurityMiddleware", |
| 48 | + "django.contrib.sessions.middleware.SessionMiddleware", |
| 49 | + "django.middleware.common.CommonMiddleware", |
| 50 | + "django.middleware.csrf.CsrfViewMiddleware", |
| 51 | + "django.contrib.auth.middleware.AuthenticationMiddleware", |
| 52 | + "django.contrib.messages.middleware.MessageMiddleware", |
| 53 | + "django.middleware.clickjacking.XFrameOptionsMiddleware", |
54 | 54 | ]
|
55 | 55 |
|
56 |
| -ROOT_URLCONF = 'pgml_todo.urls' |
| 56 | +ROOT_URLCONF = "pgml_todo.urls" |
57 | 57 |
|
58 | 58 | TEMPLATES = [
|
59 | 59 | {
|
60 |
| - 'BACKEND': 'django.template.backends.django.DjangoTemplates', |
61 |
| - 'DIRS': [], |
62 |
| - 'APP_DIRS': True, |
63 |
| - 'OPTIONS': { |
64 |
| - 'context_processors': [ |
65 |
| - 'django.template.context_processors.debug', |
66 |
| - 'django.template.context_processors.request', |
67 |
| - 'django.contrib.auth.context_processors.auth', |
68 |
| - 'django.contrib.messages.context_processors.messages', |
| 60 | + "BACKEND": "django.template.backends.django.DjangoTemplates", |
| 61 | + "DIRS": [], |
| 62 | + "APP_DIRS": True, |
| 63 | + "OPTIONS": { |
| 64 | + "context_processors": [ |
| 65 | + "django.template.context_processors.debug", |
| 66 | + "django.template.context_processors.request", |
| 67 | + "django.contrib.auth.context_processors.auth", |
| 68 | + "django.contrib.messages.context_processors.messages", |
69 | 69 | ],
|
70 | 70 | },
|
71 | 71 | },
|
72 | 72 | ]
|
73 | 73 |
|
74 |
| -WSGI_APPLICATION = 'pgml_todo.wsgi.application' |
| 74 | +WSGI_APPLICATION = "pgml_todo.wsgi.application" |
75 | 75 |
|
76 | 76 |
|
77 | 77 | # Database
|
78 | 78 | # https://docs.djangoproject.com/en/5.0/ref/settings/#databases
|
79 | 79 |
|
80 | 80 | DATABASES = {
|
81 |
| - 'default': dj_database_url.parse(os.environ.get('DATABASE_URL')), |
| 81 | + "default": dj_database_url.parse(os.environ.get("DATABASE_URL")), |
82 | 82 | }
|
83 | 83 |
|
84 | 84 |
|
|
87 | 87 |
|
88 | 88 | AUTH_PASSWORD_VALIDATORS = [
|
89 | 89 | {
|
90 |
| - 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', |
| 90 | + "NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator", |
91 | 91 | },
|
92 | 92 | {
|
93 |
| - 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', |
| 93 | + "NAME": "django.contrib.auth.password_validation.MinimumLengthValidator", |
94 | 94 | },
|
95 | 95 | {
|
96 |
| - 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', |
| 96 | + "NAME": "django.contrib.auth.password_validation.CommonPasswordValidator", |
97 | 97 | },
|
98 | 98 | {
|
99 |
| - 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', |
| 99 | + "NAME": "django.contrib.auth.password_validation.NumericPasswordValidator", |
100 | 100 | },
|
101 | 101 | ]
|
102 | 102 |
|
103 | 103 |
|
104 | 104 | # Internationalization
|
105 | 105 | # https://docs.djangoproject.com/en/5.0/topics/i18n/
|
106 | 106 |
|
107 |
| -LANGUAGE_CODE = 'en-us' |
| 107 | +LANGUAGE_CODE = "en-us" |
108 | 108 |
|
109 |
| -TIME_ZONE = 'UTC' |
| 109 | +TIME_ZONE = "UTC" |
110 | 110 |
|
111 | 111 | USE_I18N = True
|
112 | 112 |
|
|
116 | 116 | # Static files (CSS, JavaScript, Images)
|
117 | 117 | # https://docs.djangoproject.com/en/5.0/howto/static-files/
|
118 | 118 |
|
119 |
| -STATIC_URL = 'static/' |
| 119 | +STATIC_URL = "static/" |
120 | 120 |
|
121 | 121 | # Default primary key field type
|
122 | 122 | # https://docs.djangoproject.com/en/5.0/ref/settings/#default-auto-field
|
123 | 123 |
|
124 |
| -DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' |
| 124 | +DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField" |
0 commit comments