Opened 5 years ago
Closed 5 years ago
#31456 closed Uncategorized (invalid)
startapp doesn't allow one to create an app under a package.
Reported by: | Moriyoshi Koizumi | Owned by: | nobody |
---|---|---|---|
Component: | Uncategorized | Version: | 3.0 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
While the requirement described in #30393 is to check if the target directory name is suitable for a python package as well, the fix (introduced in 3.0.5) does an extra check that ensures it is not an importable python package.
I doubt the behavior is expected, since we may well do the startapp under a python package that isn't a Django project but an add-on for the applications.
Related PR: https://github.com/django/django/pull/11270
Change History (2)
comment:1 by , 5 years ago
Description: | modified (diff) |
---|
comment:2 by , 5 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
It just turned out that the doubt is not appropriate, because the target directory is supposed to be always created fresh beforehand. Sorry for bugging!