daily pastebin goal
80%
SHARE
TWEET

urls.py

a guest Apr 30th, 2013 24 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from django.contrib.staticfiles.urls import staticfiles_urlpatterns
  2.  
  3. from django.conf.urls import patterns, include, url
  4. from django.views.generic import TemplateView
  5. # Uncomment the next two lines to enable the admin:
  6. from django.contrib import admin
  7. admin.autodiscover()
  8.  
  9. urlpatterns = patterns('',
  10.     url(r'^/', TemplateView.as_view(template_name="index.html"))
  11.     # Examples:
  12.     #url(r'^$', 'site1.views.home', name='home'),
  13.     #url(r'^site1/') # include('site1.foo.urls')),
  14.  
  15.     # Uncomment the admin/doc line below to enable admin documentation:
  16.     url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
  17.  
  18.     # Uncomment the next line to enable the admin:
  19.     url(r'^admin/', include(admin.site.urls)),
  20. )
  21. urlpatterns += staticfiles_urlpatterns()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top