#8639 closed (fixed)
startproject is disabled if a settings module is specified
Reported by: | whiskybar | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Keywords: | django-admin | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I believe the documentation to django-admin.py should say the command startproject will be disabled if a settings module has been specified on the command-line or $DJANGO_SETTINGS_MODULE has been set. I have spent hours browsing docs, tickets, googlegroups, and irc to see where the command startproject has gone and why no one actually complains.
Finally, I came across a very well hidden documentation string at get_commands() in django/core/management/init.py which explained the problem to me.
Attachments (1)
Change History (10)
by , 16 years ago
Attachment: | django-admin.diff added |
---|
comment:1 by , 16 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
comment:2 by , 16 years ago
comment:3 by , 16 years ago
milestone: | → 1.0 |
---|
Yes, we have to do something here. I got bitten by this the other day, too, and had a momentary "huh?!" moment.
comment:4 by , 16 years ago
Resolution: | duplicate |
---|---|
Status: | closed → reopened |
comment:5 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
follow-up: 8 comment:6 by , 15 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
I don't consider this fixed. Why can't it have a statement when I try to use the command that I have that shows which app is already in context to let me know, instead "unknown command." It's not an unknown command, it's all over the docs. It's a command that's disabled because an existing app's settings are being used and the command line response should point that out including indicating what that current project's name is.
comment:7 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
This *was* fixed to the satisfaction of the core team in [8740]. Please don't reopen tickets that have been closed by the core. If you disagree with a decision that has been made, ask on django-dev.
comment:8 by , 14 years ago
Replying to anonymous:
I don't consider this fixed. Why can't it have a statement when I try to use the command that I have that shows which app is already in context to let me know, instead "unknown command."
It's not an unknown command, it's all over the docs. It's a command that's disabled because an existing app's settings are being used
and the command line response should point that out including indicating what that current project's name is.
I agree that there should be a warning. Note that there are two different patches that address this (one is mine) in #8329.
Duplicate of #8329.