Django

Code

Ticket #7595 (closed: duplicate)

Opened 1 year ago

Last modified 1 year ago

manage.py syncdb --noinput --settings=foo does not work as expected (the order matters)

Reported by: slinkp Assigned to: nobody
Milestone: Component: Uncategorized
Version: newforms-admin Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

If you want to run manage.py with --noinput and use a different settings file, this works:

python manage.py syncdb --settings=my.settings.module --noinput

But if --noinput comes first, the --settings option is silently ignored! Like this:

python manage.py syncdb --noinput --settings=my.settings.module

When run like that, it appears to work, but the user will later be unpleasantly surprised to discover that the default settings module was really used.

Attachments

Change History

07/01/08 18:41:47 changed by russellm

  • status changed from new to closed.
  • needs_better_patch changed.
  • resolution set to duplicate.
  • needs_tests changed.
  • needs_docs changed.

Duplicate of #6017.


Add/Change #7595 (manage.py syncdb --noinput --settings=foo does not work as expected (the order matters))




Change Properties
Action