My setting
settings.py
INSTALLED_APPS = ( ... 'myprojectname', ... ) STATIC_ROOT = '/var/www/a_valid_path/' LOCALE_PATHS = ( os.path.join(BASE_DIR, "locale"), )
urls.py
js_info_dict = { 'domain': 'djangojs', 'packages': ('myprojectname',), } urlpatterns = patterns('', ... url(r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict), ... )
My project structure is as follows:
|- projectname |--- app1 |--- app2 |--- manage.py |- virtualenv |- static |--- js |--- css
I also have a locale folder in the root folder of my project, where manage.py is located.
What am I doing
It just works:
./manage.py -l ro -d djangojs
My problem
This does not work. The .po file is not created. However server-side translation works (views + templates). I followed all the advice, and still nothing. I even tried to create the djangojs.po file djangojs.po to see if Django would delete it or something with it - no.
The error is not generated, only processing locale ro displayed (in a very short time - too short if you ask me), and that is. Any help?
Edit:. I forgot to mention that my folder containing the JS files is not located inside each Django application, but in a separate place. However, should Django not look inside STATICFILES_DIRS ?
source share