Re: problem writing a view that displays http request

2013-08-09 Thread Sithembewena Lloyd Dube
Try the following: # In your case, just add 'include' to your conf.urls imports from django.conf.urls import include Then use it in the url declaration (see the official Django tutorial). On Fri, Aug 9, 2013 at 12:04 PM, Dinesh Gudi wrote: > *urls.py* > from django.conf.urls import patterns,

problem writing a view that displays http request

2013-08-09 Thread Dinesh Gudi
*urls.py* from django.conf.urls import patterns, url from testform import views urlpatterns = patterns('', url(r'^$', views.testhandler), ) *views.py* from django.http import HttpResponse def testhandler(request): return HttpResponse(request) -- You received this message because you a