|
1 | 1 | """
|
2 | 2 | Django settings for django_celery_example project.
|
3 | 3 |
|
4 |
| -Generated by 'django-admin startproject' using Django 3.1.4. |
| 4 | +Generated by 'django-admin startproject' using Django 3.2.9. |
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/3.2/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/3.2/ref/settings/ |
11 | 11 | """
|
12 |
| - |
13 | 12 | import os
|
14 |
| -from pathlib import Path |
15 | 13 |
|
| 14 | +from pathlib import Path |
16 | 15 | from kombu import Queue
|
17 | 16 |
|
18 | 17 | # Build paths inside the project like this: BASE_DIR / 'subdir'.
|
19 | 18 | BASE_DIR = Path(__file__).resolve().parent.parent
|
20 | 19 |
|
21 | 20 |
|
22 | 21 | # Quick-start development settings - unsuitable for production
|
23 |
| -# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/ |
| 22 | +# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/ |
24 | 23 |
|
25 |
| -# SECURITY WARNING: keep the secret key used in production secret! |
26 | 24 | SECRET_KEY = os.environ.get("SECRET_KEY", "&nl8s430j^j8l*je+m&ys5dv#zoy)0a2+x1!m8hx290_sx&0gh")
|
27 | 25 |
|
28 |
| -# SECURITY WARNING: don't run with debug turned on in production! |
29 | 26 | DEBUG = int(os.environ.get("DEBUG", default=1))
|
30 | 27 |
|
31 | 28 | ALLOWED_HOSTS = os.environ.get("DJANGO_ALLOWED_HOSTS", "127.0.0.1").split(" ")
|
|
40 | 37 | 'django.contrib.sessions',
|
41 | 38 | 'django.contrib.messages',
|
42 | 39 | 'django.contrib.staticfiles',
|
43 |
| - 'polls', |
44 | 40 | 'channels',
|
45 | 41 | 'django_celery_beat',
|
| 42 | + 'polls', |
46 | 43 | 'tdd',
|
47 | 44 | ]
|
48 | 45 |
|
|
79 | 76 |
|
80 | 77 |
|
81 | 78 | # Database
|
82 |
| -# https://docs.djangoproject.com/en/3.1/ref/settings/#databases |
| 79 | +# https://docs.djangoproject.com/en/3.2/ref/settings/#databases |
83 | 80 |
|
84 | 81 | DATABASES = {
|
85 | 82 | "default": {
|
|
94 | 91 |
|
95 | 92 |
|
96 | 93 | # Password validation
|
97 |
| -# https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators |
| 94 | +# https://docs.djangoproject.com/en/3.2/ref/settings/#auth-password-validators |
98 | 95 |
|
99 | 96 | AUTH_PASSWORD_VALIDATORS = [
|
100 | 97 | {
|
|
113 | 110 |
|
114 | 111 |
|
115 | 112 | # Internationalization
|
116 |
| -# https://docs.djangoproject.com/en/3.1/topics/i18n/ |
| 113 | +# https://docs.djangoproject.com/en/3.2/topics/i18n/ |
117 | 114 |
|
118 | 115 | LANGUAGE_CODE = 'en-us'
|
119 | 116 |
|
|
127 | 124 |
|
128 | 125 |
|
129 | 126 | # Static files (CSS, JavaScript, Images)
|
130 |
| -# https://docs.djangoproject.com/en/3.1/howto/static-files/ |
| 127 | +# https://docs.djangoproject.com/en/3.2/howto/static-files/ |
131 | 128 |
|
132 | 129 | STATIC_URL = '/static/'
|
133 | 130 | STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
|
134 | 131 |
|
| 132 | +# Default primary key field type |
| 133 | +# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field |
| 134 | + |
| 135 | +DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' |
| 136 | + |
135 | 137 | MEDIA_URL = '/media/'
|
136 | 138 | MEDIA_ROOT = os.path.join(BASE_DIR, 'mediafiles')
|
137 | 139 |
|
|
0 commit comments