Browse Source

django3 compatibility and links in comments

master
Dirk Alders 4 years ago
parent
commit
c44821750f
6 changed files with 28 additions and 12 deletions
  1. 16
    0
      main/asgi.py
  2. 8
    8
      main/settings.py
  3. 1
    1
      main/urls.py
  4. 1
    1
      main/wsgi.py
  5. 1
    1
      requirements.txt
  6. 1
    1
      themes

+ 16
- 0
main/asgi.py View File

1
+"""
2
+ASGI config for main project.
3
+
4
+It exposes the ASGI callable as a module-level variable named ``application``.
5
+
6
+For more information on this file, see
7
+https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
8
+"""
9
+
10
+import os
11
+
12
+from django.core.asgi import get_asgi_application
13
+
14
+os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'main.settings')
15
+
16
+application = get_asgi_application()

+ 8
- 8
main/settings.py View File

1
 """
1
 """
2
 Django settings for this project.
2
 Django settings for this project.
3
 
3
 
4
-Generated by 'django-admin startproject' using Django 2.2.3.
4
+Generated by 'django-admin startproject' using Django 3.0.3.
5
 
5
 
6
 For more information on this file, see
6
 For more information on this file, see
7
-https://docs.djangoproject.com/en/2.2/topics/settings/
7
+https://docs.djangoproject.com/en/3.0/topics/settings/
8
 
8
 
9
 For the full list of settings and their values, see
9
 For the full list of settings and their values, see
10
-https://docs.djangoproject.com/en/2.2/ref/settings/
10
+https://docs.djangoproject.com/en/3.0/ref/settings/
11
 """
11
 """
12
 
12
 
13
 import config
13
 import config
47
     setattr(thismodule, property_name, value)
47
     setattr(thismodule, property_name, value)
48
 
48
 
49
 # Quick-start development settings - unsuitable for production
49
 # Quick-start development settings - unsuitable for production
50
-# See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/
50
+# See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/
51
 
51
 
52
 # SECURITY WARNING: keep the secret key used in production secret!
52
 # SECURITY WARNING: keep the secret key used in production secret!
53
 #
53
 #
114
 
114
 
115
 
115
 
116
 # Database
116
 # Database
117
-# https://docs.djangoproject.com/en/2.2/ref/settings/#databases
117
+# https://docs.djangoproject.com/en/3.0/ref/settings/#databases
118
 #
118
 #
119
 DATABASES = {
119
 DATABASES = {
120
     'default': {
120
     'default': {
125
 
125
 
126
 
126
 
127
 # Password validation
127
 # Password validation
128
-# https://docs.djangoproject.com/en/2.2/ref/settings/#auth-password-validators
128
+# https://docs.djangoproject.com/en/3.0/ref/settings/#auth-password-validators
129
 #
129
 #
130
 AUTH_PASSWORD_VALIDATORS = [
130
 AUTH_PASSWORD_VALIDATORS = [
131
     {
131
     {
149
 
149
 
150
 
150
 
151
 # Internationalization
151
 # Internationalization
152
-# https://docs.djangoproject.com/en/2.2/topics/i18n/
152
+# https://docs.djangoproject.com/en/3.0/topics/i18n/
153
 #
153
 #
154
 LANGUAGE_CODE = 'en-us'
154
 LANGUAGE_CODE = 'en-us'
155
 LANGUAGES = [
155
 LANGUAGES = [
172
 
172
 
173
 
173
 
174
 # Static files (CSS, JavaScript, Images)
174
 # Static files (CSS, JavaScript, Images)
175
-# https://docs.djangoproject.com/en/2.2/howto/static-files/
175
+# https://docs.djangoproject.com/en/3.0/howto/static-files/
176
 #
176
 #
177
 STATIC_ROOT = os.path.join(BASE_DIR, 'data', 'static')
177
 STATIC_ROOT = os.path.join(BASE_DIR, 'data', 'static')
178
 STATIC_URL = '/static/'
178
 STATIC_URL = '/static/'

+ 1
- 1
main/urls.py View File

1
 """Project URL Configuration
1
 """Project URL Configuration
2
 
2
 
3
 The `urlpatterns` list routes URLs to views. For more information please see:
3
 The `urlpatterns` list routes URLs to views. For more information please see:
4
-    https://docs.djangoproject.com/en/2.2/topics/http/urls/
4
+    https://docs.djangoproject.com/en/3.0/topics/http/urls/
5
 Examples:
5
 Examples:
6
 Function views
6
 Function views
7
     1. Add an import:  from my_app import views
7
     1. Add an import:  from my_app import views

+ 1
- 1
main/wsgi.py View File

4
 It exposes the WSGI callable as a module-level variable named ``application``.
4
 It exposes the WSGI callable as a module-level variable named ``application``.
5
 
5
 
6
 For more information on this file, see
6
 For more information on this file, see
7
-https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
7
+https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
8
 """
8
 """
9
 
9
 
10
 import os
10
 import os

+ 1
- 1
requirements.txt View File

1
-Django>=2.0.5,<3.0
1
+Django>=2.0.5
2
 Pillow>=5.4.1
2
 Pillow>=5.4.1
3
 python-creole>=1.0.0
3
 python-creole>=1.0.0
4
 Whoosh>=2.4.0
4
 Whoosh>=2.4.0

+ 1
- 1
themes

1
-Subproject commit a24e772083b27e9ab413d137005dbc9e8325dbc4
1
+Subproject commit b0106a3d5cc302844dacc681f75f047876525e5e

Loading…
Cancel
Save