Code

Opened 3 years ago

Closed 3 years ago

#17099 closed Bug (fixed)

startapp command still mistakenly assumes apps are only created in project

Reported by: ptone Owned by: carljm
Component: Core (Management commands) Version: master
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.

Attachments (0)

Change History (2)

comment:1 Changed 3 years ago by carljm

  • Needs documentation unset
  • Needs tests unset
  • Owner changed from nobody to carljm
  • Patch needs improvement unset
  • Status changed from new to assigned
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 3 years ago by carljm

  • Resolution set to fixed
  • Status changed from assigned to closed

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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.