From 630ef629394803a4e19ff8366ccd7ff5a60cddd6 Mon Sep 17 00:00:00 2001 From: Ryan Febriansyah <15523163@students.uii.ac.id> Date: Thu, 11 Apr 2019 04:44:18 +0700 Subject: [PATCH] fix specifying namespace --- src/djangoreactredux/urls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/djangoreactredux/urls.py b/src/djangoreactredux/urls.py index 3b2b3c8d..5a1b674f 100644 --- a/src/djangoreactredux/urls.py +++ b/src/djangoreactredux/urls.py @@ -5,8 +5,8 @@ from base import views as base_views urlpatterns = [ - url(r'^api/v1/accounts/', include('accounts.urls', namespace='accounts')), - url(r'^api/v1/getdata/', include('base.urls', namespace='base')), + url(r'^api/v1/accounts/', include('accounts.urls'), name='accounts'), + url(r'^api/v1/getdata/', include('base.urls'), name='base'), # catch all others because of how history is handled by react router - cache this page because it will never change url(r'', cache_page(settings.PAGE_CACHE_SECONDS)(base_views.IndexView.as_view()), name='index'),