Joe Gregorio | e48a491 | 2010-09-27 15:05:36 -0400 | [diff] [blame] | 1 | import os |
| 2 | from django.conf.urls.defaults import * |
| 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'^$', '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 | ) |