Opened 13 years ago

Closed 13 years ago

#17099 closed Bug (fixed)

startapp command still mistakenly assumes apps are only created in project

Reported by: Preston Holmes Owned by: Carl Meyer
Component: Core (Management commands) Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

changes made in r16964,

https://code.djangoproject.com/changeset/16964#file5

remove the requirement to create apps inside the project. But this line:

https://code.djangoproject.com/browser/django/tags/releases/1.3/django/core/management/commands/startapp.py#L25

so attempting to so something like

mkdir foo
cd foo
django-admin.py startproject fred
django-admin.py startapp foo

will result in:

Error: You cannot create an app with the same name ('foo') as your project.

Change History (2)

comment:1 by Carl Meyer, 13 years ago

Owner: changed from nobody to Carl Meyer
Status: newassigned
Triage Stage: UnreviewedAccepted

comment:2 by Carl Meyer, 13 years ago

Resolution: fixed
Status: assignedclosed

In [17030]:

Fixed #17099 -- Removed an out-of-date warning and some unused code, now that startapp doesn't require creating app inside project. Thanks ptone for the report.

Note: See TracTickets for help on using tickets.
Back to Top