#19125 closed Cleanup/optimization (fixed) startproject attemps a relative import

Reported by: lrekucki Owned by: nobody
Component: Core (Management commands) Version: 1.4
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


By mistake, I passed a path instead of a name:

$ PYTHONPATH=. ./django/bin/ startproject ../foobar
TypeError: relative imports require the 'package' argument

The error message isn't very obvious.

Attachments (1)

ticket19125.diff (5.1 KB) - added by lrekucki 21 months ago.

Download all attachments as: .zip

Change History (6)

Changed 21 months ago by lrekucki

comment:2 Changed 21 months ago by lrekucki

  • Has patch set

comment:3 Changed 21 months ago by claudep

  • Component changed from Uncategorized to Core (Management commands)
  • Triage Stage changed from Unreviewed to Accepted
  • Type changed from Bug to Cleanup/optimization

comment:4 Changed 19 months ago by ramiro

  • Triage Stage changed from Accepted to Ready for checkin

comment:5 Changed 18 months ago by Claude Paroz <claude@…>

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

In 9893fa12b735f3f47b35d4063d86dddf3145cb25:

Fixed #19125 -- The startproject command should validate the name earlier

Thanks Łukasz Rekucki for the report and the patch.

Add Comment

Modify Ticket

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

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

Note: See TracTickets for help on using tickets.