From aa4025d1384fd54af91978fddd21ad14c0b1425a Mon Sep 17 00:00:00 2001 From: Bastiaan Welmers Date: Thu, 7 May 2020 22:49:57 +0200 Subject: [PATCH] Names for url components so they can be used with reverse() --- videodinges/urls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/videodinges/urls.py b/videodinges/urls.py index 7f43c21..f93a469 100644 --- a/videodinges/urls.py +++ b/videodinges/urls.py @@ -23,8 +23,8 @@ from . import views _urlpatterns = [ url(r'^admin/', admin.site.urls), - url(r'^$', views.index), - url(r'^(?P[\w-]+).html', views.video) + url(r'^$', views.index, name='index'), + url(r'^(?P[\w-]+).html', views.video, name='video') ] _urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)