Opened 8 years ago

Closed 8 years ago

#7643 closed (fixed) makemessages not working

Reported by: Horst Gutmann <zerok@…> Owned by: jezdez
Component: Core (Management commands) Version: master
Severity: Keywords: makemessages, i18n, command
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


When executing the new ( #5522 ) makemessages command using, I receive a runtime error indicating that settings are initialized twice:

$ python makemessages -a
Traceback (most recent call last):
  File "", line 11, in <module>
  File "/Users/zerok/.local/lib/python2.5/site-packages/django/core/management/", line 272, in execute_manager
  File "/Users/zerok/.local/lib/python2.5/site-packages/django/core/management/", line 219, in execute
  File "/Users/zerok/.local/lib/python2.5/site-packages/django/core/management/", line 77, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/Users/zerok/.local/lib/python2.5/site-packages/django/core/management/", line 91, in execute
    output = self.handle(*args, **options)
  File "/Users/zerok/.local/lib/python2.5/site-packages/django/core/management/commands/", line 159, in handle
    make_messages(locale, domain, verbosity, process_all)
  File "/Users/zerok/.local/lib/python2.5/site-packages/django/core/management/commands/", line 17, in make_messages
    settings.configure(USE_I18N = True)
  File "/Users/zerok/.local/lib/python2.5/site-packages/django/conf/", line 68, in configure
    raise RuntimeError, 'Settings already configured.'
RuntimeError: Settings already configured.

Attached is a small patch that's supposed to solve this and still work with :-)

Attachments (1)

makemessages.diff (663 bytes) - added by Horst Gutmann <zerok@…> 8 years ago.

Download all attachments as: .zip

Change History (3)

Changed 8 years ago by Horst Gutmann <zerok@…>

comment:1 Changed 8 years ago by jezdez

  • Needs documentation unset
  • Needs tests unset
  • Owner changed from nobody to jezdez
  • Patch needs improvement unset
  • Status changed from new to assigned

I can confirm this, must have slipped through, d'oh.

comment:2 Changed 8 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [7848]) Fixed #7643 -- Fixed an oversight from [7844].

Now makemessages works in projects again. Based on a patch from Horst Gutmann.

Note: See TracTickets for help on using tickets.
Back to Top