Opened 12 years ago
Closed 12 years ago
#19125 closed Cleanup/optimization (fixed)
django-admin.py startproject attemps a relative import
Reported by: | Łukasz Rekucki | 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 |
Description
By mistake, I passed a path instead of a name:
$ PYTHONPATH=. ./django/bin/django-admin.py startproject ../foobar TypeError: relative imports require the 'package' argument
The error message isn't very obvious.
Attachments (1)
Change History (6)
by , 12 years ago
Attachment: | ticket19125.diff added |
---|
comment:1 by , 12 years ago
comment:2 by , 12 years ago
Has patch: | set |
---|
comment:3 by , 12 years ago
Component: | Uncategorized → Core (Management commands) |
---|---|
Triage Stage: | Unreviewed → Accepted |
Type: | Bug → Cleanup/optimization |
comment:4 by , 12 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
comment:5 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
https://github.com/django/django/pull/441