Projet

Général

Profil

Télécharger (1,35 ko) Statistiques
| Branche: | Tag: | Révision:

univnautes / usr / local / univnautes / sp / sp / urls.py @ 2e5c9f05

1
# -*- coding: utf-8 -*-
2
#
3
# UnivNautes
4
# Copyright (C) 2014  Entr'ouvert
5
#
6
# This program is free software: you can redistribute it and/or modify it under
7
# the terms of the GNU Affero General Public License as published by the Free
8
# Software Foundation, either version 3 of the License, or (at your option) any
9
# later version.
10
#
11
# This program is distributed in the hope that it will be useful, but WITHOUT
12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13
# FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
14
# details.
15
#
16
# You should have received a copy of the GNU Affero General Public License
17
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18

    
19
from django.conf.urls import patterns, include, url
20
from django.conf import settings
21

    
22
urlpatterns = patterns('',
23
    url(r'^$', 'sp.views.homepage', name='homepage'),
24
    url(r'^proxymap/(?P<z>[0-9]+)/(?P<x>[0-9]+)/(?P<y>[0-9]+)\.png$', 'sp.views.proxymap'),
25
    url(r'^accounts/logout/', 'django.contrib.auth.views.logout_then_login'),
26
    url(r'^accounts/', include('django.contrib.auth.urls')),
27
    url(r'^authsaml2/', include('authentic2.authsaml2.urls')),
28
)
29

    
30
if 'django.contrib.admin' in settings.INSTALLED_APPS:
31
    from django.contrib import admin
32
    admin.autodiscover()
33
    urlpatterns += patterns('', url(r'^admin/', include(admin.site.urls)))
34

    
(5-5/7)