Here is my setup....

ajax_views.py:
from django.core import serializers

def subfocus(request):
        data = serializers.serialize("xml", SubFocus.objects.all())
        return HttpResponse(data, mimetype="text/javascript")

urls.py:
(r'^tick/ajax/subfocus', 'kate.tick.ajax_views.subfocus'),

When I go to http://localhost:8000/tick/ajax/subfocus I get a
SyntaxError:
SyntaxError at /tick/ajax/subfocus/
invalid syntax (ajax_views.py, line 7)

Request Method: GET
Request URL:    http://localhost:8000/tick/ajax/subfocus/
Exception Type: SyntaxError
Exception Value:        invalid syntax (ajax_views.py, line 7)

Line 7 being the "data = ..." lin in the ajax_views.py file.  I think I
am doing this right.  I just created this view so I could get data for
an AJAX request.  What is the issue?

Thanks.
Seth


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to