#36533: manage.py startapp <name> <directory> fails to create new app
-------------------------------------+-------------------------------------
Reporter: Kenneth Love | Type: Bug
Status: new | Component: Core
| (Management commands)
Version: 5.2 | Severity: Normal
Keywords: startapp | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Current 5.2 [https://docs.djangoproject.com/en/5.2/ref/django-
admin/#startapp documentation] says that `manage.py startapp name
destination` should create a new app in the `destination` directory. This
_does_ work with `django-admin` but fails with `manage.py`.
== Steps to reproduce
* Create a new virtual environment with `uv venv`
* Install Django with `uv pip install django`
* Create a new Django project with `uv run django-admin startproject
example_project`
* `cd` into `example_project`
* Create a new destination directory with `mkdir destination`
* Create a new app in the `destination` directory with `uv run manage.py
startapp example destination`
* Get the error: `CommandError: 'destination' conflicts with the name of
an existing Python module and cannot be used as an app directory. Please
try another directory.`
== Expectation
A new Django app named `example` would be created in the `destination`
directory.
--
Ticket URL: <https://code.djangoproject.com/ticket/36533>
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 view this discussion visit
https://groups.google.com/d/msgid/django-updates/010701985da2edaf-794032b8-c593-409c-8da0-35481e84399b-000000%40eu-central-1.amazonses.com.