From 99ccbac9e4b96524aa33b5005ce3f7aa029126f6 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Thu, 3 Dec 2015 08:48:38 -0500 Subject: added namespace to all urls via the new app_name param in url files as per django 1.10 --- app/birds/urls.py | 2 ++ app/books/urls.py | 2 ++ app/expenses/urls.py | 1 + app/figments/urls.py | 2 ++ app/notes/urls.py | 2 ++ app/photos/urls.py | 2 ++ app/resume/urls.py | 2 ++ app/src/urls.py | 1 + 8 files changed, 14 insertions(+) diff --git a/app/birds/urls.py b/app/birds/urls.py index 8b1618c..8781433 100644 --- a/app/birds/urls.py +++ b/app/birds/urls.py @@ -2,6 +2,8 @@ from django.conf.urls import url from django.views.generic.base import RedirectView from . import views +app_name = "birds" + urlpatterns = [ url( r'(?P[\w]+)/(?P\d+)/', diff --git a/app/books/urls.py b/app/books/urls.py index c05fed7..be075ab 100644 --- a/app/books/urls.py +++ b/app/books/urls.py @@ -3,6 +3,8 @@ from django.views.generic.base import RedirectView from . import views +app_name = "books" + urlpatterns = [ url( r'(?P\d+)/$', diff --git a/app/expenses/urls.py b/app/expenses/urls.py index 698ac07..6b146c3 100644 --- a/app/expenses/urls.py +++ b/app/expenses/urls.py @@ -1,6 +1,7 @@ from django.conf.urls import url from . import views +app_name = "expenses" urlpatterns = [ url( diff --git a/app/figments/urls.py b/app/figments/urls.py index 9e624aa..1bc02a0 100644 --- a/app/figments/urls.py +++ b/app/figments/urls.py @@ -2,6 +2,8 @@ from django.conf.urls import url from . import views +app_name = "figments" + urlpatterns = [ url( r'^feed.xml', diff --git a/app/notes/urls.py b/app/notes/urls.py index 2bec08f..3f46915 100644 --- a/app/notes/urls.py +++ b/app/notes/urls.py @@ -2,6 +2,8 @@ from django.conf.urls import url from . import views +app_name = "notes" + urlpatterns = [ url( r'(?P\d{4})/(?P\d{2})/(?P[-\w]+)$', diff --git a/app/photos/urls.py b/app/photos/urls.py index 7d074a9..78acb1c 100644 --- a/app/photos/urls.py +++ b/app/photos/urls.py @@ -3,6 +3,8 @@ from django.views.generic.base import RedirectView from . import views +app_name = "photos" + urlpatterns = [ url( r'data/(?P[-\w]+)/$', diff --git a/app/resume/urls.py b/app/resume/urls.py index 3e113e8..ce9c435 100644 --- a/app/resume/urls.py +++ b/app/resume/urls.py @@ -3,6 +3,8 @@ from django.views.generic.base import RedirectView from . import views +app_name = "resume" + urlpatterns = [ url( r'pubs/(?P\d+)/$', diff --git a/app/src/urls.py b/app/src/urls.py index 37e4774..b8ea1a2 100644 --- a/app/src/urls.py +++ b/app/src/urls.py @@ -2,6 +2,7 @@ from django.conf.urls import url, include from . import views +app_name = "src" urlpatterns = [ url( -- cgit v1.2.3-70-g09d2