On 19 sep, 18:52, Ben Kraft <ben.kr...@gmail.com> wrote:
> I'm trying to do a javascript post to an internal api and use a
> callback to process the JSON result.  I'm referencing the api using,
>
> {% url %},
>
> which returns a path url relative to my domain ( /api/... instead 
> ofhttp://localhost/api/... for the dev site).
>
> The problem is js does not recognize that the relative / path url
> returned by {% url %} is on the same domain current page,

A "path only" url should work too - when the domain is not specified,
it is assumed to the the same as the current page's. Please check the
generated HTML source and make sure the urls for your js libs are
using the same domain OR no domain at all.

-- 
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.

Reply via email to