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

Untitled

By: a guest on Jun 21st, 2012  |  syntax: None  |  size: 0.26 KB  |  hits: 7  |  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. Trouble setting up django settings
  2. from django.http import HttpResponse
  3.  
  4. def hello(request):
  5.     return HttpResponse("Hello world")
  6.        
  7. from django.conf.urls.defaults import *
  8. from mysite.views import hello
  9.  
  10. urlpatterns = patterns('',
  11. (r'^hello/$', hello),
  12. )