Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#2590 closed defect (invalid)

missing __init__.py in django/core

Reported by: attardi@… 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 Antonio Cavedoni, 18 years ago

Cc: antonio@… added
Component: Admin interfaceCore framework
Resolution: invalid
Status: newclosed

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.

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