On Sun, Jan 11, 2009 at 2:48 PM, Tipan <t...@ortengo.co.uk> wrote:
>
> I'm having a problem accessing Javascript Translation catalog whilst
> converting my site to multi-language. As suggested in the docs, I have
> added the following to my applications top level urls file.
>
>
> js_info_dict = {
>    'packages': ( 'myapp.myproject',),
> }
>
> (r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict),
>
> However, when I render my template the url to jsi18n generates a "url
> not found" error in Firebug. The docs say /path/to/jsi18n, but I'm not
> sure how to reconcile this properly with my app.
>
> <script type="text/javascript" src="/jsi18n/"></script>
>
> Can anyone give me a pointer - I'm sure I'm missing the obvious, but
> can't see it at the moment.

What version of Django are you using?, which web server? what deployment
method? Does the web server show a 404 error in its logs when the /jsi18n/
URL is accessed from the browser? What happens if you manually open with
your browser the http://<server>/jsi18n/ URL?.

Regards,

-- 
 Ramiro Morales

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