~nicolas-dumoulin/+junk/djangopld

« back to all changes in this revision

Viewing changes to pld/urls.py

  • Committer: Nicolas Dumoulin
  • Date: 2011-02-23 11:44:53 UTC
  • Revision ID: nicolas@dumoulin63.net-20110223114453-1mef2j4e89h3i2ig
initial version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from django.conf.urls.defaults import *
 
2
import settings
 
3
 
 
4
# Uncomment the next two lines to enable the admin:
 
5
from django.contrib import admin
 
6
admin.autodiscover()
 
7
 
 
8
urlpatterns = patterns('',
 
9
    # Example:
 
10
    # (r'^pld/', include('pld.foo.urls')),
 
11
    (r'^$', 'pld.pois.views.index'),
 
12
    (r'^liste$', 'pld.pois.views.table'),
 
13
    (r'^saisie.*$', 'pld.pois.views.saisie'),
 
14
    (r'^modifie/(?P<id>\d+)$', 'pld.pois.views.saisie'),
 
15
    (r'^login$', 'django.contrib.auth.views.login',{'template_name': 'pois/login.html'}, 'login'),
 
16
    (r'^logout$', 'django.contrib.auth.views.logout',{'next_page': '/'}),
 
17
    # Uncomment the admin/doc line below to enable admin documentation:
 
18
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
 
19
 
 
20
    # Uncomment the next line to enable the admin:
 
21
    (r'^admin/', include(admin.site.urls)),
 
22
)