From fc7f1ddb7f64ff85a5995e8457c5b03e4a810b96 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 14 Dec 2016 03:34:43 +0100 Subject: [PATCH] Revert "Depreciation de namespace dans django 1.9" This reverts commit 2febf5b2467a9734154ee00f572d7799f2c63333. --- cotisations/urls.py | 1 - logs/urls.py | 1 - machines/urls.py | 1 - re2o/urls.py | 14 +++++++------- search/urls.py | 1 - topologie/urls.py | 1 - users/urls.py | 1 - 7 files changed, 7 insertions(+), 13 deletions(-) diff --git a/cotisations/urls.py b/cotisations/urls.py index 3f4e3411..8e7fcc38 100644 --- a/cotisations/urls.py +++ b/cotisations/urls.py @@ -2,7 +2,6 @@ from django.conf.urls import url from . import views -app_name = 'cotisations' urlpatterns = [ url(r'^new_facture/(?P[0-9]+)$', views.new_facture, name='new-facture'), url(r'^edit_facture/(?P[0-9]+)$', views.edit_facture, name='edit-facture'), diff --git a/logs/urls.py b/logs/urls.py index c662c206..673405ff 100644 --- a/logs/urls.py +++ b/logs/urls.py @@ -2,7 +2,6 @@ from django.conf.urls import url from . import views -app_name = 'logs' urlpatterns = [ url(r'^$', views.index, name='index'), url(r'^revert_action/(?P[0-9]+)$', views.revert_action, name='revert-action'), diff --git a/machines/urls.py b/machines/urls.py index 8b639330..47710d71 100644 --- a/machines/urls.py +++ b/machines/urls.py @@ -2,7 +2,6 @@ from django.conf.urls import url from . import views -app_name = 'machines' urlpatterns = [ url(r'^new_machine/(?P[0-9]+)$', views.new_machine, name='new-machine'), url(r'^edit_interface/(?P[0-9]+)$', views.edit_interface, name='edit-interface'), diff --git a/re2o/urls.py b/re2o/urls.py index 1709a394..14d1d65b 100644 --- a/re2o/urls.py +++ b/re2o/urls.py @@ -22,11 +22,11 @@ urlpatterns = [ url(r'^$', index), url('^logout/', auth_views.logout, {'next_page': '/'}), url('^', include('django.contrib.auth.urls')), - url(r'^admin/', admin.site.urls), - url(r'^users/', include('users.urls')), - url(r'^search/', include('search.urls')), - url(r'^cotisations/', include('cotisations.urls')), - url(r'^machines/', include('machines.urls')), - url(r'^topologie/', include('topologie.urls')), - url(r'^logs/', include('logs.urls')), + url(r'^admin/', include(admin.site.urls)), + url(r'^users/', include('users.urls', namespace='users')), + url(r'^search/', include('search.urls', namespace='search')), + url(r'^cotisations/', include('cotisations.urls', namespace='cotisations')), + url(r'^machines/', include('machines.urls', namespace='machines')), + url(r'^topologie/', include('topologie.urls', namespace='topologie')), + url(r'^logs/', include('logs.urls', namespace='logs')), ] diff --git a/search/urls.py b/search/urls.py index cefe1054..721bdb97 100644 --- a/search/urls.py +++ b/search/urls.py @@ -2,7 +2,6 @@ from django.conf.urls import url from . import views -app_name = 'search' urlpatterns = [ url(r'^$', views.search, name='search'), url(r'^avance/$', views.searchp, name='searchp'), diff --git a/topologie/urls.py b/topologie/urls.py index c3e52e19..e8df7722 100644 --- a/topologie/urls.py +++ b/topologie/urls.py @@ -2,7 +2,6 @@ from django.conf.urls import url from . import views -app_name = 'topologie' urlpatterns = [ url(r'^$', views.index, name='index'), url(r'^new_switch/$', views.new_switch, name='new-switch'), diff --git a/users/urls.py b/users/urls.py index 760898d9..95a5d2e5 100644 --- a/users/urls.py +++ b/users/urls.py @@ -2,7 +2,6 @@ from django.conf.urls import url from . import views -app_name = 'users' urlpatterns = [ url(r'^new_user/$', views.new_user, name='new-user'), url(r'^edit_info/(?P[0-9]+)$', views.edit_info, name='edit-info'),