misc: apply django-upgrade (#69798)
This commit is contained in:
parent
9f406a321b
commit
865b285828
|
@ -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'),
|
||||
]
|
||||
|
|
|
@ -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'),
|
||||
]
|
||||
|
|
|
@ -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'),
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue