source: mauRepo/dj_security/trunk/dj_security/urls.py @ 8662

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/dj_security/trunk/dj_security/urls.py@8662
Revision 8662, 917 bytes checked in by mnagni, 7 years ago (diff)

Refactoring of "static" and parametrization of settings.py database

  • Property svn:mime-type set to text/plain
Line 
1from django.conf.urls import patterns, include, url
2
3# Uncomment the next two lines to enable the admin:
4# from django.contrib import admin
5# admin.autodiscover()
6
7urlpatterns = patterns('',
8    # Examples:
9    # url(r'^$', 'mydjango_secapp.views.home', name='home'),
10    # url(r'^mydjango_secapp/', include('mydjango_secapp.foo.urls')),
11
12    # Uncomment the admin/doc line below to enable admin documentation:
13    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
14
15    # Uncomment the next line to enable the admin:
16    # url(r'^admin/', include(admin.site.urls)),
17    url(r'^accounts/', include('registration.backends.default.urls')),
18    url(r'^account/', include('django_authopenid.urls')),
19)
20
21
22urlpatterns += patterns('dj_security.views.my_view',
23    (r'^login$', 'my_login'),
24)
25urlpatterns += patterns('dj_security.views.my_profile',
26    (r'^accounts/profile/$', 'frontpage'),
27)
28print urlpatterns
Note: See TracBrowser for help on using the repository browser.