> my HTML form tag is as follows: > > <form method="POST" action="."> > > How can I avoid losing the "?token=blah" part? I think this could be > the problem.
You'll want to replace it with this: <form method="POST" action="{{ request.get_full_path }}"> As explained here: http://docs.djangoproject.com/en/dev/ref/request-response/#django.http.HttpRequest.get_full_path > > assert False > > I don't konow exactly what you mean with this. Is this some kind of > debug possibility? An "assert" immediately stops execution if the expression evaluates to false. So "assert False" just stops the view dead in its tracks. You can then inspect the state of your view, including all the variables, providing you have settings.DEBUG set to true. Regards Scott -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.