Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 26th, 2012  |  syntax: None  |  size: 0.85 KB  |  hits: 9  |  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 *
  2.  
  3. # import in order to access settings.py variables
  4. from django.conf import settings
  5.  
  6. # importing all the views  
  7. from views import *
  8.  
  9. # Uncomment the next two lines to enable the admin:
  10. from django.contrib import admin
  11. admin.autodiscover()
  12.  
  13. urlpatterns = patterns('',
  14.     # Example:
  15.     # (r'^prologger/', include('prologger.foo.urls')),
  16.  
  17.     # Uncomment the admin/doc line below to enable admin documentation:
  18.      (r'^admin/doc/', include('django.contrib.admindocs.urls')),
  19.      (r'^$', home),
  20.      (r'^login/', login),
  21.  
  22.     # Uncomment the next line to enable the admin:
  23.      (r'^admin/', include(admin.site.urls)),
  24. )
  25.  
  26. if settings.DEBUG:
  27.     urlpatterns += patterns('',
  28.         (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
  29. )