Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1037339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T14:50:28+00:00 2026-05-16T14:50:28+00:00

From django documentation: js_info_dict = { ‘packages’: (‘your.app.package’,), } urlpatterns = patterns(”, (r’^jsi18n/$’, ‘django.views.i18n.javascript_catalog’,

  • 0

From django documentation:

js_info_dict = {
‘packages’: (‘your.app.package’,), }

urlpatterns = patterns(”,
(r’^jsi18n/$’, ‘django.views.i18n.javascript_catalog’,
js_info_dict), )

Each string in packages should be in
Python dotted-package syntax (the same
format as the strings in
INSTALLED_APPS) and should refer to a
package that contains a locale
directory.

It says “a package that contains a locale directory.” , but i created translation files with djangoadmin.py makemessages -a and it creates locale just inside project directory. Not under any of my application directories. And i try to set packages as

js_info_dict = {
‘packages’: (‘my_project_dir’,), }

Apparently that’s not working for me. Every string from django domain gets translated but i get an empty translation catalog in javascript from javascript_catalog view. What am i missing here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T14:50:28+00:00Added an answer on May 16, 2026 at 2:50 pm

    First you need to be sure that your js_info_dict is like this:

    js_info_dict = {
        'domain': 'djangojs',
        'packages': ('my_project_name',),
    }
    

    And as @daonb suggested, add ‘my_project_name’ to your INSTALLED_APPS in settings.py.

    Make sure that you compile your messages like this:

    django-admin.py makemessages -a -d djangojs
    

    That’s all!

    I don’t know why Django doesn’t have that information into its documentation. I could find the solution with using these articles below:

    http://www.aminche.com/blog/2010/07/06/playground-editor
    http://code.djangoproject.com/ticket/5494
    http://osdir.com/ml/django-users/2010-04/msg00231.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

here is my code: urls.py: from django.conf.urls import patterns from views import show,showpage urlpatterns
Im moving from django to pylons, is there an admin app?
I am using django 1.4 together with jqgrid from django_gems package The following code
I get this error when I use simplejson from django.utils in google app engine
From the Django documentation... When you're only dealing with simple many-to-many relationships such as
This example is from the Django documentation . Given the (Django) database model: class
From the documentation : Django provides a hook for passing the database arbitrary SQL
My Django urls.py has: from django.conf.urls.defaults import patterns, include, url import admin import settings
The Django documentation gives en example like so: b = Blog.objects.get(id=1) b.entry_set.all() Which from
According to Django documentation I've registered my filter: from google.appengine.ext.webapp import template # ...

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.