On Wed, Nov 4, 2009 at 9:50 AM, NMarcu <[email protected]> wrote:
>
> Hello all,
>
> I got an error, and I don't know how to pass on it. I got this
> error when I try to use ajax from django templates.
> I use this, from jquery:
> $('#create-user').click(function() {
> $( '#test_div' ).load( "{% url test_ajax %}");
> });
>
>
'{% url test_ajax %}' will only expand to a URL if that file is parsed by
django's template engine. Since the url is not expanded, I'm guessing that
it isn't - is it in a standalone javascript file?
The other code posted is not relevant, you're not getting past the first
step here.
Cheers
Tom
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---