|
1 | 1 | """
|
2 | 2 | Django settings for django_celery_example project.
|
3 | 3 |
|
4 |
| -Generated by 'django-admin startproject' using Django 5.0. |
| 4 | +Generated by 'django-admin startproject' using Django 5.1.5. |
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 | import os
|
13 | 13 | from pathlib import Path
|
|
18 | 18 |
|
19 | 19 |
|
20 | 20 | # Quick-start development settings - unsuitable for production
|
21 |
| -# See https://docs.djangoproject.com/en/5.0/howto/deployment/checklist/ |
| 21 | +# See https://docs.djangoproject.com/en/5.1/howto/deployment/checklist/ |
22 | 22 |
|
23 | 23 | # SECURITY WARNING: keep the secret key used in production secret!
|
24 | 24 | SECRET_KEY = os.environ.get("SECRET_KEY", "&nl8s430j^j8l*je+m&ys5dv#zoy)0a2+x1!m8hx290_sx&0gh")
|
|
39 | 39 | 'django.contrib.sessions',
|
40 | 40 | 'django.contrib.messages',
|
41 | 41 | 'django.contrib.staticfiles',
|
42 |
| - 'polls', |
43 | 42 | 'channels',
|
44 | 43 | 'django_celery_beat',
|
| 44 | + 'polls', |
45 | 45 | 'tdd',
|
46 | 46 | ]
|
47 | 47 |
|
|
76 | 76 | # WSGI_APPLICATION = 'django_celery_example.wsgi.application'
|
77 | 77 | ASGI_APPLICATION = 'django_celery_example.asgi.application'
|
78 | 78 |
|
| 79 | + |
79 | 80 | # Database
|
80 |
| -# https://docs.djangoproject.com/en/5.0/ref/settings/#databases |
| 81 | +# https://docs.djangoproject.com/en/5.1/ref/settings/#databases |
81 | 82 |
|
82 | 83 | DATABASES = {
|
83 | 84 | "default": {
|
|
92 | 93 |
|
93 | 94 |
|
94 | 95 | # Password validation
|
95 |
| -# https://docs.djangoproject.com/en/5.0/ref/settings/#auth-password-validators |
| 96 | +# https://docs.djangoproject.com/en/5.1/ref/settings/#auth-password-validators |
96 | 97 |
|
97 | 98 | AUTH_PASSWORD_VALIDATORS = [
|
98 | 99 | {
|
|
111 | 112 |
|
112 | 113 |
|
113 | 114 | # Internationalization
|
114 |
| -# https://docs.djangoproject.com/en/5.0/topics/i18n/ |
| 115 | +# https://docs.djangoproject.com/en/5.1/topics/i18n/ |
115 | 116 |
|
116 | 117 | LANGUAGE_CODE = 'en-us'
|
117 | 118 |
|
|
123 | 124 |
|
124 | 125 |
|
125 | 126 | # Static files (CSS, JavaScript, Images)
|
126 |
| -# https://docs.djangoproject.com/en/5.0/howto/static-files/ |
| 127 | +# https://docs.djangoproject.com/en/5.1/howto/static-files/ |
127 | 128 |
|
128 | 129 | STATIC_URL = '/static/'
|
129 | 130 | STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
|
|
132 | 133 | MEDIA_ROOT = os.path.join(BASE_DIR, 'mediafiles')
|
133 | 134 |
|
134 | 135 | # Default primary key field type
|
135 |
| -# https://docs.djangoproject.com/en/5.0/ref/settings/#default-auto-field |
| 136 | +# https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field |
136 | 137 |
|
137 | 138 | DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
138 | 139 |
|
|
168 | 169 | Queue('low_priority'),
|
169 | 170 | )
|
170 | 171 |
|
171 |
| - |
172 | 172 | def route_task(name, args, kwargs, options, task=None, **kw):
|
173 | 173 | if ':' in name:
|
174 | 174 | queue, _ = name.split(':')
|
|
0 commit comments