misc: apply django-upgrade (#69798)

This commit is contained in:
Valentin Deniaud 2022-10-03 14:26:54 +02:00
parent 9f406a321b
commit 865b285828
3 changed files with 6 additions and 6 deletions

View File

@ -14,7 +14,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from django.http import HttpResponse
from django.urls import include, re_path
from django.urls import include, path, re_path
def homepage(request):
@ -23,5 +23,5 @@ def homepage(request):
urlpatterns = [
re_path('^', include('mellon.urls')),
re_path('^$', homepage, name='homepage'),
path('', homepage, name='homepage'),
]

View File

@ -14,7 +14,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from django.http import HttpResponse
from django.urls import include, re_path
from django.urls import include, path, re_path
def homepage(request):
@ -23,5 +23,5 @@ def homepage(request):
urlpatterns = [
re_path('^', include('mellon.urls'), kwargs={'template_base': 'theme.html'}),
re_path('^$', homepage, name='homepage'),
path('', homepage, name='homepage'),
]

View File

@ -14,7 +14,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from django.http import HttpResponse
from django.urls import include, re_path
from django.urls import include, path, re_path
def homepage(request):
@ -34,5 +34,5 @@ urlpatterns = [
'context_hook': context_hook,
},
),
re_path('^$', homepage, name='homepage'),
path('', homepage, name='homepage'),
]