#30616: CommandTemplate Behavior Is Inconsistent.
-------------------------------------+-------------------------------------
Reporter: John Gooding | Owner: nobody
Type: Bug | Status: closed
Component: Core (Management | Version: master
commands) |
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by John Gooding):
I never said it wasn't a documented behavior. I said the behavior isn't
consistent. I think saying it depends on arguments and not on where its
run, is completely pointless. They are one and the same, the argument is
the position. My point is the behavior can be improved, not that it is
broken, and I believe it warrants further discussion on that.
Replying to [comment:1 felixxm]:
> Thanks for the report, however this behavior doesn't depend on where it
is run, it depends on arguments and this is a
[https://docs.djangoproject.com/en/2.2/ref/django-admin/#startapp
documented] behavior:
>
> - `python ../manage.py startapp polls` - creates a Django app directory
structure in the current directory.
> - `python manage.py startapp polls project` - creates a Django app
directory structure in the existing directory `project`, because you
provided an optional `destination`, see:
>
> > "If the optional destination is provided, Django will use that
existing directory rather than creating a new one."
--
Ticket URL: <https://code.djangoproject.com/ticket/30616#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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.46002acbaf6c910a17bf99b242d83776%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.