Explorar el Código

django3 compatibility and links in comments

master
Dirk Alders hace 4 años
padre
commit
c44821750f
Se han modificado 6 ficheros con 28 adiciones y 12 borrados
  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 Ver fichero

@@ -0,0 +1,16 @@
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 Ver fichero

@@ -1,13 +1,13 @@
1 1
 """
2 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 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 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 13
 import config
@@ -47,7 +47,7 @@ for property_name in USER_CONFIG_DEFAULTS:
47 47
     setattr(thismodule, property_name, value)
48 48
 
49 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 52
 # SECURITY WARNING: keep the secret key used in production secret!
53 53
 #
@@ -114,7 +114,7 @@ WSGI_APPLICATION = 'main.wsgi.application'
114 114
 
115 115
 
116 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 119
 DATABASES = {
120 120
     'default': {
@@ -125,7 +125,7 @@ DATABASES = {
125 125
 
126 126
 
127 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 130
 AUTH_PASSWORD_VALIDATORS = [
131 131
     {
@@ -149,7 +149,7 @@ WHOOSH_PATH = os.path.join(BASE_DIR, 'data', 'whoosh_index')
149 149
 
150 150
 
151 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 154
 LANGUAGE_CODE = 'en-us'
155 155
 LANGUAGES = [
@@ -172,7 +172,7 @@ USE_TZ = True
172 172
 
173 173
 
174 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 177
 STATIC_ROOT = os.path.join(BASE_DIR, 'data', 'static')
178 178
 STATIC_URL = '/static/'

+ 1
- 1
main/urls.py Ver fichero

@@ -1,7 +1,7 @@
1 1
 """Project URL Configuration
2 2
 
3 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 5
 Examples:
6 6
 Function views
7 7
     1. Add an import:  from my_app import views

+ 1
- 1
main/wsgi.py Ver fichero

@@ -4,7 +4,7 @@ WSGI config for this project.
4 4
 It exposes the WSGI callable as a module-level variable named ``application``.
5 5
 
6 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 10
 import os

+ 1
- 1
requirements.txt Ver fichero

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

+ 1
- 1
themes

@@ -1 +1 @@
1
-Subproject commit a24e772083b27e9ab413d137005dbc9e8325dbc4
1
+Subproject commit b0106a3d5cc302844dacc681f75f047876525e5e

Loading…
Cancelar
Guardar