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,
*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
2 matches
Mail list logo