Opened 17 years ago
Closed 17 years ago
#7643 closed (fixed)
manage.py makemessages not working
| Reported by: | Owned by: | Jannis Leidel | |
|---|---|---|---|
| Component: | Core (Management commands) | Version: | dev |
| Severity: | Keywords: | makemessages, i18n, command | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
When executing the new ( #5522 ) makemessages command using manage.py, I receive a runtime error indicating that settings are initialized twice:
$ python manage.py makemessages -a
Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_manager(settings)
File "/Users/zerok/.local/lib/python2.5/site-packages/django/core/management/__init__.py", line 272, in execute_manager
utility.execute()
File "/Users/zerok/.local/lib/python2.5/site-packages/django/core/management/__init__.py", line 219, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Users/zerok/.local/lib/python2.5/site-packages/django/core/management/base.py", line 77, in run_from_argv
self.execute(*args, **options.__dict__)
File "/Users/zerok/.local/lib/python2.5/site-packages/django/core/management/base.py", line 91, in execute
output = self.handle(*args, **options)
File "/Users/zerok/.local/lib/python2.5/site-packages/django/core/management/commands/makemessages.py", line 159, in handle
make_messages(locale, domain, verbosity, process_all)
File "/Users/zerok/.local/lib/python2.5/site-packages/django/core/management/commands/makemessages.py", line 17, in make_messages
settings.configure(USE_I18N = True)
File "/Users/zerok/.local/lib/python2.5/site-packages/django/conf/__init__.py", 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 django-admin.py :-)
Attachments (1)
Change History (3)
by , 17 years ago
| Attachment: | makemessages.diff added |
|---|
comment:1 by , 17 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:2 by , 17 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
I can confirm this, must have slipped through, d'oh.