1 from django.conf.urls.defaults import *
4 # Uncomment the next two lines to enable the admin:
5 from django.contrib import admin
8 urlpatterns = patterns('',
10 # (r'^samplebc/', include('samplebc.foo.urls')),
12 # Uncomment the admin/doc line below and add 'django.contrib.admindocs'
13 # to INSTALLED_APPS to enable admin documentation:
14 # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
16 # Authentication stuff
17 ('^accounts/login/$', 'django.contrib.auth.views.login'),
18 ('^accounts/logout/$', 'django.contrib.auth.views.logout'),
19 ('^accounts/logout_then_login/$', 'django.contrib.auth.views.logout_then_login'),
20 ('^accounts/pwchange/$', 'django.contrib.auth.views.password_change'),
21 ('^accounts/pwchange_done/$', 'django.contrib.auth.views.password_change_done'),
22 # Note view is in samplebc.samples; something doesn't feel right about that, but
23 # I am not sure where to put it at the moment. -BWK
24 ('^accounts/profile/$', 'samplebc.samples.views.user_profile'),
26 # Uncomment the next line to enable the admin:
27 (r'^admin/(.*)', admin.site.root),
28 (r'^static/(?P<path>.*)$', 'django.views.static.serve',
29 {'document_root': os.path.abspath('../www')}),
31 (r'^bcmagic/', include('samplebc.bcmagic.urls')),
32 (r'^samples/', include('samplebc.samples.urls'))