|
1 | 1 | """ |
2 | 2 | Django settings for locallibrary project. |
3 | 3 |
|
4 | | -Generated by 'django-admin startproject' using Django 3.1.2. |
| 4 | +Generated by 'django-admin startproject' using Django 4.0.2. |
5 | 5 |
|
6 | 6 | For more information on this file, see |
7 | | -https://docs.djangoproject.com/en/3.1/topics/settings/ |
| 7 | +https://docs.djangoproject.com/en/4.0/topics/settings/ |
8 | 8 |
|
9 | 9 | For the full list of settings and their values, see |
10 | | -https://docs.djangoproject.com/en/3.1/ref/settings/ |
| 10 | +https://docs.djangoproject.com/en/4.0/ref/settings/ |
11 | 11 | """ |
12 | 12 |
|
13 | 13 | from pathlib import Path |
|
17 | 17 |
|
18 | 18 |
|
19 | 19 | # Quick-start development settings - unsuitable for production |
20 | | -# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/ |
| 20 | +# See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/ |
21 | 21 |
|
22 | 22 | # SECURITY WARNING: keep the secret key used in production secret! |
23 | 23 | #SECRET_KEY = 'cg#p$g+j9tax!#a3cup@1$8obt2_+&k3q+pmu)5%asj6yjpkag' |
|
78 | 78 |
|
79 | 79 |
|
80 | 80 | # Database |
81 | | -# https://docs.djangoproject.com/en/3.1/ref/settings/#databases |
| 81 | +# https://docs.djangoproject.com/en/4.0/ref/settings/#databases |
82 | 82 |
|
83 | 83 | DATABASES = { |
84 | 84 | 'default': { |
|
89 | 89 |
|
90 | 90 |
|
91 | 91 | # Password validation |
92 | | -# https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators |
| 92 | +# https://docs.djangoproject.com/en/4.0/ref/settings/#auth-password-validators |
93 | 93 |
|
94 | 94 | AUTH_PASSWORD_VALIDATORS = [ |
95 | 95 | { |
|
108 | 108 |
|
109 | 109 |
|
110 | 110 | # Internationalization |
111 | | -# https://docs.djangoproject.com/en/3.1/topics/i18n/ |
| 111 | +# https://docs.djangoproject.com/en/4.0/topics/i18n/ |
112 | 112 |
|
113 | 113 | LANGUAGE_CODE = 'en-us' |
114 | 114 |
|
115 | 115 | TIME_ZONE = 'UTC' |
116 | 116 |
|
117 | 117 | USE_I18N = True |
118 | 118 |
|
119 | | -USE_L10N = True |
120 | | - |
121 | 119 | USE_TZ = True |
122 | 120 |
|
123 | 121 |
|
|
138 | 136 |
|
139 | 137 |
|
140 | 138 | # Static files (CSS, JavaScript, Images) |
141 | | -# https://docs.djangoproject.com/en/3.1/howto/static-files/ |
| 139 | +# https://docs.djangoproject.com/en/4.0/howto/static-files/ |
142 | 140 | # The absolute path to the directory where collectstatic will collect static files for deployment. |
143 | 141 | STATIC_ROOT = BASE_DIR / 'staticfiles' #. os.path.join(BASE_DIR, 'staticfiles') |
144 | 142 | # The URL to use when referring to static files (where they will be served from) |
|
148 | 146 | # Static file serving. |
149 | 147 | # http://whitenoise.evans.io/en/stable/django.html#django-middleware |
150 | 148 | STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage' |
| 149 | + |
| 150 | +DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' |
0 commit comments