Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#1255 closed defect (invalid)

Error in tutorial 2 (part on admin-interface)

Reported by: flo Owned by: Adrian Holovaty
Component: contrib.admin Version: 0.90
Severity: minor Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


I got the following error when executing the

python install admin


Traceback (most recent call last):

File "D:\Python\django-tutorial\myproject\", line 11, in ?


File "c:\python24\lib\site-packages\django-0.91-py2.4.egg\django\core\", line 990, i



File "c:\python24\lib\site-packages\django-0.91-py2.4.egg\django\core\", line 903, i



File "c:\python24\lib\site-packages\django-0.91-py2.4.egg\django\utils\", line 192,

in activate

_active[currentThread()] = translation(language)

File "c:\python24\lib\site-packages\django-0.91-py2.4.egg\django\utils\", line 181,

in translation

default_translation = _fetch(settings.LANGUAGE_CODE)

File "c:\python24\lib\site-packages\django-0.91-py2.4.egg\django\utils\", line 164,

in _fetch

app = getattr(import(appname[:p], {}, {}, [appname[p+1:]]), appname[p+1:])

AttributeError: 'module' object has no attribute 'main'

To resolve this, you have to change the INSTALLED_APPS-tuple in to this:




Reason for the error: the module named main was changed to admin.

Django really shows Python's power, and as a Java Programmer I'm impressed more and more, keep up the good work.

Greetings, Florian.

Change History (1)

comment:1 Changed 13 years ago by Adrian Holovaty

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top