﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
1255	Error in tutorial 2 (part on admin-interface)	flo	Adrian Holovaty	"I got the following error when executing the

'''python manage.py install admin'''

command:

Traceback (most recent call last):
  File ""D:\Python\django-tutorial\myproject\manage.py"", line 11, in ?
    execute_manager(settings)
  File ""c:\python24\lib\site-packages\django-0.91-py2.4.egg\django\core\management.py"", line 990, i
 execute_manager
    execute_from_command_line(action_mapping)
  File ""c:\python24\lib\site-packages\django-0.91-py2.4.egg\django\core\management.py"", line 903, i
 execute_from_command_line
    translation.activate('en-us')
  File ""c:\python24\lib\site-packages\django-0.91-py2.4.egg\django\utils\translation.py"", line 192,
in activate
    _active[currentThread()] = translation(language)
  File ""c:\python24\lib\site-packages\django-0.91-py2.4.egg\django\utils\translation.py"", line 181,
in translation
    default_translation = _fetch(settings.LANGUAGE_CODE)
  File ""c:\python24\lib\site-packages\django-0.91-py2.4.egg\django\utils\translation.py"", 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 settings.py to this:

INSTALLED_APPS = (
    'myproject.polls',
    'django.contrib.admin',
)

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."	defect	closed	contrib.admin	0.90	minor	invalid			Unreviewed	0	0	0	0	0	0
