#2590 closed defect (invalid)
missing __init__.py in django/core
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Core (Other) | Version: | |
Severity: | normal | Keywords: | |
Cc: | antonio@… | Triage Stage: | Unreviewed |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
On Windows, when calling django-admin.py I am getting the error
django-admin.py startproject mysite
Traceback (most recent call last):
File "C:\Project\IXE\Django-0.95\django\bin\django-admin.py", line 2, in ?
from django.core import management
ImportError: No module named core
Trying to figure it out, I noticed that the file init.py is missing on the directories core and others, and therefore python24 skips those directories when looking for modules.
They are present as empty files in the tar.gz, but apparently winzip skips empty files.
Change History (1)
comment:1 by , 18 years ago
Cc: | added |
---|---|
Component: | Admin interface → Core framework |
Resolution: | → invalid |
Status: | new → closed |
Giuseppe, that is a bug with winzip (skipping empty files by default is not OK, try to see if there’s an option to turn that off).
Empty
__init__.py
files for modules are a Python convention which we have no way of changing. I’m marking this as invalid.