fix: 修改重定向

pull/4107/head
ibuler 2020-06-15 17:44:40 +08:00
parent eef172d0e2
commit 451690fe8b
2 changed files with 2 additions and 1 deletions

View File

@ -87,6 +87,7 @@ if settings.DEBUG:
# 兼容之前的 # 兼容之前的
old_app_pattern = '|'.join(apps) old_app_pattern = '|'.join(apps)
old_app_pattern = r'^{}'.format(old_app_pattern)
urlpatterns += [re_path(old_app_pattern, views.redirect_old_apps_view)] urlpatterns += [re_path(old_app_pattern, views.redirect_old_apps_view)]

View File

@ -14,7 +14,7 @@ coreapi==2.3.3
coreschema==0.0.4 coreschema==0.0.4
cryptography==2.8 cryptography==2.8
decorator==4.1.2 decorator==4.1.2
Django==2.2.10 Django==2.2.13
django-auth-ldap==1.7.0 django-auth-ldap==1.7.0
django-bootstrap3==9.1.0 django-bootstrap3==9.1.0
django-celery-beat==1.4.0 django-celery-beat==1.4.0