On Jul 28, 7:27 pm, ashish tiwari <code...@gmail.com> wrote:
> I see the value error when I run the
>
> http://127.0.0.1:8000/People/Info/5
>
> it shows me the error which is in the figure……attached with this folder…..
>
> here is the codes….of  “urls.py,views.py,models.py……..
>
<snip>
>
> ######################
>
> #views.py
>
> #####################
>
>  -*- coding: utf-8 -*-

> from django.http import HttpResponse

> def index(request):
>     html = "<H1>People</H1><HR>"
>     return HttpResponse(html)
>
> def details(request, pID='0'):
>     response = HttpResponse()
>     response.write("<HTML><BODY>\n")
>     if (pID == '0'):
>         response.write("<H1>Person Details Index</H1><HR>\n")
>     else:
>         response.write("<H1>Details for Person%s</H1><HR>\n" % pID)
>         response.write("(details go here)")
>     response.write("</BODY></HTML>")
>

<snip>

As the error message states, you're not returning the response from
the 'details' view.
--
DR.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to