views:

39

answers:

1

Currently all JavaScript files are served from our static/media directory in the top level project directory. When running makemassages -d djangojs it will generate the locale directory in the top level too.

However, javascript_catalog will only consider locale directories created in apps, i.e. listed in the INSTALLED_APPS setting.

What's the proper way of having makemessages and javascript_catalog work in tandem to actually use the JavaScript i18n functionality?

Move the js-files into the app dir and have multiple static directories (not appealing imho, I'm currently serving static files through nginx and this, among other things, will clutter the conf)?

I'm using Django 1.1

+2  A: 

i worked around this some weeks ago in creating symlinks in each project dir to the media files and it worked fine for me :-)

config hell but "some sort of" DRY

renton
OK, nice! It also worked to add the site-directory to INSTALLED_APPS, I don't know what consequences that might have though, but the js i18n worked ;)
sris