|
1 | 1 | """ |
2 | | -Django settings. |
| 2 | +Django settings for mysite project. |
3 | 3 |
|
4 | | -Generated by 'django-admin startproject'. |
| 4 | +Generated by 'django-admin startproject' using Django 5.1. |
5 | 5 |
|
6 | 6 | For more information on this file, see |
7 | | -https://docs.djangoproject.com/en/5.0/topics/settings/ |
| 7 | +https://docs.djangoproject.com/en/5.1/topics/settings/ |
8 | 8 |
|
9 | 9 | For the full list of settings and their values, see |
10 | | -https://docs.djangoproject.com/en/5.0/ref/settings/ |
| 10 | +https://docs.djangoproject.com/en/5.1/ref/settings/ |
11 | 11 | """ |
12 | 12 |
|
13 | 13 | import os |
|
21 | 21 |
|
22 | 22 |
|
23 | 23 | # Quick-start development settings - unsuitable for production |
24 | | -# See https://docs.djangoproject.com/en/5.0/howto/deployment/checklist/ |
| 24 | +# See https://docs.djangoproject.com/en/5.1/howto/deployment/checklist/ |
25 | 25 |
|
26 | 26 | # SECURITY WARNING: keep the secret key used in production secret! |
27 | 27 | SECRET_KEY = os.environ.get('SECRET_KEY', 'changeme') |
|
78 | 78 |
|
79 | 79 |
|
80 | 80 | # Database |
81 | | -# https://docs.djangoproject.com/en/5.0/ref/settings/#databases |
| 81 | +# https://docs.djangoproject.com/en/5.1/ref/settings/#databases |
82 | 82 |
|
83 | 83 | if "DATABASE_URL" in os.environ: |
84 | 84 | DATABASES = {'default': dj_database_url.config(conn_max_age=500)} |
|
92 | 92 |
|
93 | 93 |
|
94 | 94 | # Password validation |
95 | | -# https://docs.djangoproject.com/en/5.0/ref/settings/#auth-password-validators |
| 95 | +# https://docs.djangoproject.com/en/5.1/ref/settings/#auth-password-validators |
96 | 96 |
|
97 | 97 | AUTH_PASSWORD_VALIDATORS = [ |
98 | 98 | { |
|
111 | 111 |
|
112 | 112 |
|
113 | 113 | # Internationalization |
114 | | -# https://docs.djangoproject.com/en/5.0/topics/i18n/ |
| 114 | +# https://docs.djangoproject.com/en/5.1/topics/i18n/ |
115 | 115 |
|
116 | 116 | LANGUAGE_CODE = 'en-us' |
117 | 117 |
|
|
123 | 123 |
|
124 | 124 |
|
125 | 125 | # Static files (CSS, JavaScript, Images) |
126 | | -# https://docs.djangoproject.com/en/5.0/howto/static-files/ |
| 126 | +# https://docs.djangoproject.com/en/5.1/howto/static-files/ |
127 | 127 |
|
128 | 128 | STATIC_URL = '/static/' |
129 | 129 | STATIC_ROOT = BASE_DIR / 'staticfiles' |
|
143 | 143 |
|
144 | 144 |
|
145 | 145 | # Default storage settings, with the staticfiles storage updated. |
146 | | -# See https://docs.djangoproject.com/en/5.0/ref/settings/#std-setting-STORAGES |
| 146 | +# See https://docs.djangoproject.com/en/5.1/ref/settings/#std-setting-STORAGES |
147 | 147 | STORAGE_BACKEND = "django.core.files.storage.FileSystemStorage" |
148 | 148 |
|
149 | 149 | if AWS_SECRET_ACCESS_KEY: |
|
155 | 155 | }, |
156 | 156 | # ManifestStaticFilesStorage is recommended in production, to prevent |
157 | 157 | # outdated JavaScript / CSS assets being served from cache |
158 | | - # See https://docs.djangoproject.com/en/5.0/ref/contrib/staticfiles/#manifeststaticfilesstorage |
| 158 | + # See https://docs.djangoproject.com/en/5.1/ref/contrib/staticfiles/#manifeststaticfilesstorage |
159 | 159 | "staticfiles": { |
160 | 160 | "BACKEND": "django.contrib.staticfiles.storage.ManifestStaticFilesStorage", |
161 | 161 | }, |
162 | 162 | } |
163 | 163 |
|
164 | 164 |
|
165 | 165 | # Default primary key field type |
166 | | -# https://docs.djangoproject.com/en/5.0/ref/settings/#default-auto-field |
| 166 | +# https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field |
167 | 167 |
|
168 | 168 | DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' |
0 commit comments