Commit ec86aa43 authored by Gabriel Detraz's avatar Gabriel Detraz Committed by root

Adaptation des urls à django 1.10

parent c653ab45
from django.conf.urls import patterns as patterns
from django.conf.urls import url
import views
urlpatterns = patterns('',
('^mozilla.xml$', views.mozilla)
)
urlpatterns = [
url('^mozilla.xml$', views.mozilla)
]
from django.conf.urls import patterns as patterns
from django.conf.urls import url
import views
......
from django.conf.urls import patterns as patterns
from django.conf.urls import url
import views
urlpatterns = patterns('',
urlpatterns = [
url('^$', views.afficher, name='afficher'),
url('^adh/$', views.afficher, name='afficher'),
url('^adh/(?P<aid>[0-9]+)/$', views.afficher, name='afficher'),
......@@ -44,4 +43,4 @@ views.delete_alias, name='delete_alias'),
url('^(?P<ptype>club)/create/$', views.create, name='create'),
url('^(?P<ptype>club)/create/(?P<confirm>confirm)/$$', views.create, name='create'),
url('^resetpass/(?P<uid>[0-9]+)/$', views.resetpass, name='resetpass'),
)
]
from django.conf.urls import patterns, url
from django.conf.urls import url
import views
urlpatterns = patterns('',
urlpatterns = [
url('^$', views.index, name='index'),
url('^liste/(?P<ptype>club)/(?P<cid>[0-9]+)/$', views.index, name='liste'),
url('^liste/(?P<ptype>adh)/(?P<aid>[0-9]+)/$', views.index, name='liste'),
url('(?P<fid>[0-9]+).pdf', views.facture, name='facture'),
url('^liste/(?P<ptype>adh)/(?P<aid>[0-9]+)/(?P<fid>[0-9]+).pdf/$', views.facture, name='facture'),
url('^liste/(?P<ptype>club)/(?P<cid>[0-9]+)/(?P<fid>[0-9]+).pdf/$', views.facture, name='facture')
)
]
# -*- coding: utf-8 -*-
from django.conf.urls import patterns as patterns
from django.conf.urls import url, include
import views
urlpatterns = patterns('',
urlpatterns = [
url('^$', views.pageperso, name='pageperso'),
url('^deref', views.deref, name='deref'),
url('^createdb', views.create_database, name='create_database'),
url('^resetdbpw', views.reset_db_password, name='reset_db_password'),
url('^deletedb', views.delete_database, name='delete_database'),
)
]
# Spécifier en plus un utilisateur pour qui éditer
urlpatterns = patterns('', url(r'^(?:(?P<login>[^/]*)/)?', include(urlpatterns)))
urlpatterns = [url(r'^(?:(?P<login>[^/]*)/)?', include(urlpatterns))]
......@@ -19,7 +19,7 @@
Urls de l'application password_reset
"""
from django.conf.urls import patterns, url
from django.conf.urls import url
import views
......
from django.conf.urls import patterns, url
from django.conf.urls import url
import views
urlpatterns = patterns('',
urlpatterns = [
#url('^$', views.redirect_to_view, name="root"),
url('^$', views.prise_autorise, name="prise_autorise"),
url('^(?P<pk>[0-9]+)/del$', views.prise_autorise_del, name="prise_autorise_del"),
url('^view/(.+)?$', views.view, name="view"),
url('^validate/(.+)?$', views.validate, name="validate"),
)
]
from django.conf.urls import patterns as patterns
from django.conf.urls import url
import views
urlpatterns = patterns('',
urlpatterns = [
url('^$', views.affquotas, name='quota')
)
]
from django.conf.urls import patterns as patterns
from django.conf.urls import url
import views
urlpatterns = patterns('',
urlpatterns = [
url('^$', views.accueil, name="transactions"),
url('^recharger$', views.recharger, name="recharger"),
url('^recharger/response$', views.rechargerResponse, name="rechargerResponse"),
url('^recharger/ipn$', views.rechargerIPN, name="rechargerIPN"),
url('^factures$', views.factures, name="factures"),
url('^credite/(?P<tid>[0-9]+)/', views.credite, name="credite"),
)
]
from django.conf.urls import patterns, url
from django.conf.urls import url
import views
urlpatterns = patterns('',
urlpatterns = [
url('^$', views.tv, name="index"),
url('^auth$', views.icecast_auth, name="icecast_auth"),
url('^radio/(?P<radio>.+).m3u$', views.radio_playlist, name="radio_playlist"),
url('^radio/password/(?P<radio>.+)$', views.get_radio_password, name="get_radio_password"),
url('^(?P<tv>.+).m3u$', views.tv_playlist, name="tv_playlist"),
)
]
# -*- encoding: utf-8 -*-
from django.conf.urls import include, patterns, url
from django.conf.urls import include, url
import views
urlpatterns = patterns('',
urlpatterns = [
# Ceci est la vue appelée par les scripts désireux d'enregister une
# nouvelle action
url('^register/(.*)/$', views.register, name='register'),
......@@ -19,5 +19,5 @@ urlpatterns = patterns('',
# * chbre invalide
# * compte inactif
# * machine inutilisée depuis n jours (cf vue "keep" de l'app "machines")
)
]
......@@ -16,15 +16,15 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from django.conf.urls import patterns, url
from django.conf.urls import url
import views
urlpatterns = patterns('',
urlpatterns = [
url('^$', views.index),
url('^get_xml$', views.get_xml),
url('^update\((\w+),(\d+\.?\d+),(\d+\.?\d+)\)$', views.update),
url('^change_conf$', views.change_conf),
)
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment