Names for url components
so they can be used with reverse()
This commit is contained in:
@@ -23,8 +23,8 @@ from . import views
|
|||||||
|
|
||||||
_urlpatterns = [
|
_urlpatterns = [
|
||||||
url(r'^admin/', admin.site.urls),
|
url(r'^admin/', admin.site.urls),
|
||||||
url(r'^$', views.index),
|
url(r'^$', views.index, name='index'),
|
||||||
url(r'^(?P<slug>[\w-]+).html', views.video)
|
url(r'^(?P<slug>[\w-]+).html', views.video, name='video')
|
||||||
]
|
]
|
||||||
|
|
||||||
_urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
_urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||||
|
|||||||
Reference in New Issue
Block a user