Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 10th, 2012  |  syntax: None  |  size: 0.90 KB  |  views: 54  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. from django.conf.urls.defaults import patterns, include, url
  2. import settings
  3. from website.views import home, filtered, login_error
  4.  
  5. # Uncomment the next two lines to enable the admin:
  6. # from django.contrib import admin
  7. # admin.autodiscover()
  8.  
  9. urlpatterns = patterns('',
  10.     # Examples:
  11.      url(r'^$', home, name='home'),
  12.      url(r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT, 'show_indexes':False}),
  13.      url(r'', include('social_auth.urls')),
  14.      url(r'^filtered/$', filtered, name='filtered'),
  15.      url(r'^wtf/$', login_error, name='login_error'),
  16.     # url(r'^spottim/', include('spottim.foo.urls')),
  17.  
  18.     # Uncomment the admin/doc line below to enable admin documentation:
  19.     # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
  20.  
  21.     # Uncomment the next line to enable the admin:
  22.     # url(r'^admin/', include(admin.site.urls)),
  23. )