This problem seems to occur whenever there is any syntax error in my
code *anywhere*. I just introduced one about a hundred lines into my
view function and triggered it.
Here is a simple test case, complete with sample syntax error:
=======
urls.py:
from django.conf.urls.defaults import *
from testproj.testapp.views import *
urlpatterns = patterns('',
(r'^testapp/$', hello),
)
=======
=======
testapp/views.py:
from django.shortcuts import render_to_response
def hello(request):
x = 5
x ++= 1
return render_to_response('hello.html')
=======
=======
testapp/hello.html:
<html>
<head><title>hello</title></head>
<body>
Hello, Syntax Error!
</body>
</html>
=======
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---