#20254: startproject command - need better error message -------------------------------------+------------------------------------- Reporter: dhivya23 | Owner: nobody Type: Uncategorized | Status: closed Component: Core (Management | Version: 1.4 commands) | Resolution: needsinfo Severity: Normal | Triage Stage: Keywords: | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by tomask): Hi, I think this has been fixed in commit a9a0f0b03f9a02deb03617bf7e9773a307d1328f (django 1.4). The 'startproject' and 'startapp' commands are not disabled any more when specifying a settings module. {{{ $ git diff a9a0f0b03f9a02deb03617bf7e9773a307d1328f 20c8aa2a2029be50449b25122f85bbef0f2b957f django/core/man agement/__init__.py diff --git a/django/core/management/__init__.py b/django/core/management/__init__.py index 3672639..7e8eebd 100644 --- a/django/core/management/__init__.py +++ b/django/core/management/__init__.py @@ -77,7 +77,9 @@ def get_commands(): in that package are registered. Core commands are always included. If a settings module has been - specified, user-defined commands will also be included. + specified, user-defined commands will also be included, the + startproject command will be disabled, and the startapp command + will be modified to use the directory in which the settings module appears. The dictionary is in the format {command_name: app_name}. Key-value pairs from this dictionary can then be used in calls to }}} I hope this helps. -- Ticket URL: <https://code.djangoproject.com/ticket/20254#comment:2> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.