blob: aeba620d475a3b284b4e2e6c48e01735b458f616 [file] [log] [blame]
Joe Gregorioe48a4912010-09-27 15:05:36 -04001import os
2from django.conf.urls.defaults import *
3
4# Uncomment the next two lines to enable the admin:
5from django.contrib import admin
6admin.autodiscover()
7
8urlpatterns = patterns('',
9 # Example:
10 (r'^$', 'django_sample.buzz.views.index'),
11 (r'^auth_return', 'django_sample.buzz.views.auth_return'),
12
13 # Uncomment the admin/doc line below and add 'django.contrib.admindocs'
14 # to INSTALLED_APPS to enable admin documentation:
15 # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
16
17 # Uncomment the next line to enable the admin:
18 (r'^admin/', include(admin.site.urls)),
19 (r'^accounts/login/$', 'django.contrib.auth.views.login',
20 {'template_name': 'buzz/login.html'}),
21
22 (r'^static/(?P<path>.*)$', 'django.views.static.serve',
23 {'document_root': os.path.join(os.path.dirname(__file__), 'static')
24}),
25)