Upgrade to Django 3.2 (#2056)

This commit is contained in:
Raphael Michel
2021-05-07 12:00:30 +02:00
committed by GitHub
parent 0a7a3537eb
commit 403b8191e4
120 changed files with 1994 additions and 1555 deletions

View File

@@ -33,7 +33,7 @@
# License for the specific language governing permissions and limitations under the License.
from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls import include, re_path
from django.views.generic import RedirectView
import pretix.control.urls
@@ -45,23 +45,23 @@ from .base.views import (
)
base_patterns = [
url(r'^download/(?P<id>[^/]+)/$', cachedfiles.DownloadView.as_view(),
name='cachedfile.download'),
url(r'^healthcheck/$', health.healthcheck,
name='healthcheck'),
url(r'^redirect/$', redirect.redir_view, name='redirect'),
url(r'^jsi18n/(?P<lang>[a-zA-Z-_]+)/$', js_catalog.js_catalog, name='javascript-catalog'),
url(r'^metrics$', metrics.serve_metrics,
name='metrics'),
url(r'^csp_report/$', csp.csp_report, name='csp.report'),
url(r'^agpl_source$', source.get_source, name='source'),
url(r'^js_helpers/states/$', js_helpers.states, name='js_helpers.states'),
url(r'^api/v1/', include(('pretix.api.urls', 'pretixapi'), namespace='api-v1')),
url(r'^api/$', RedirectView.as_view(url='/api/v1/'), name='redirect-api-version')
re_path(r'^download/(?P<id>[^/]+)/$', cachedfiles.DownloadView.as_view(),
name='cachedfile.download'),
re_path(r'^healthcheck/$', health.healthcheck,
name='healthcheck'),
re_path(r'^redirect/$', redirect.redir_view, name='redirect'),
re_path(r'^jsi18n/(?P<lang>[a-zA-Z-_]+)/$', js_catalog.js_catalog, name='javascript-catalog'),
re_path(r'^metrics$', metrics.serve_metrics,
name='metrics'),
re_path(r'^csp_report/$', csp.csp_report, name='csp.report'),
re_path(r'^agpl_source$', source.get_source, name='source'),
re_path(r'^js_helpers/states/$', js_helpers.states, name='js_helpers.states'),
re_path(r'^api/v1/', include(('pretix.api.urls', 'pretixapi'), namespace='api-v1')),
re_path(r'^api/$', RedirectView.as_view(url='/api/v1/'), name='redirect-api-version')
]
control_patterns = [
url(r'^control/', include((pretix.control.urls, 'control'))),
re_path(r'^control/', include((pretix.control.urls, 'control'))),
]
debug_patterns = []
@@ -69,7 +69,7 @@ if settings.DEBUG:
try:
import debug_toolbar
debug_patterns.append(url(r'^__debug__/', include(debug_toolbar.urls)))
debug_patterns.append(re_path(r'^__debug__/', include(debug_toolbar.urls)))
except ImportError:
pass