1 | from 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 | |
---|
7 | urlpatterns = 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 | |
---|
22 | urlpatterns += patterns('dj_security.views.my_view', |
---|
23 | (r'^login$', 'my_login'), |
---|
24 | ) |
---|
25 | urlpatterns += patterns('dj_security.views.my_profile', |
---|
26 | (r'^accounts/profile/$', 'frontpage'), |
---|
27 | ) |
---|
28 | print urlpatterns |
---|