Monday, January 2, 2012

Re: technique about using thread in views.py

On Mon, 2012-01-02 at 02:37 -0800, Kay wrote:
> def welcome(request):
> c = {}
> c.update(csrf(request))
> return render_to_response("welcome_page.html",c)

your code stops here, unless you have something in the welcome page to
call this or another view function, you will be stuck on the welcome
page for ever. (remember 'return' ends the execution of a function)

--
regards
Kenneth Gonsalves

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment