Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#2590 closed defect (invalid)

missing __init__.py in django/core

Reported by: attardi@… Owned by: adrian
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: UI/UX:

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 Changed 9 years ago by verbosus

  • Cc antonio@… added
  • Component changed from Admin interface to Core framework
  • Resolution set to invalid
  • Status changed from new to 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.

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