From 2febf5b2467a9734154ee00f572d7799f2c63333 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Wed, 14 Dec 2016 03:32:34 +0100 Subject: [PATCH] Depreciation de namespace dans django 1.9 --- 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, 13 insertions(+), 7 deletions(-) diff --git a/cotisations/urls.py b/cotisations/urls.py index 8e7fcc38..3f4e3411 100644 --- a/cotisations/urls.py +++ b/cotisations/urls.py @@ -2,6 +2,7 @@ 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 673405ff..c662c206 100644 --- a/logs/urls.py +++ b/logs/urls.py @@ -2,6 +2,7 @@ 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 47710d71..8b639330 100644 --- a/machines/urls.py +++ b/machines/urls.py @@ -2,6 +2,7 @@ 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 14d1d65b..1709a394 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/', 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')), + 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')), ] diff --git a/search/urls.py b/search/urls.py index 721bdb97..cefe1054 100644 --- a/search/urls.py +++ b/search/urls.py @@ -2,6 +2,7 @@ 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 e8df7722..c3e52e19 100644 --- a/topologie/urls.py +++ b/topologie/urls.py @@ -2,6 +2,7 @@ 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 95a5d2e5..760898d9 100644 --- a/users/urls.py +++ b/users/urls.py @@ -2,6 +2,7 @@ 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'),