Hi Guys,

I have tried to run the tutorial after updating to the latest svn trunk
(magic removal) and it's failing when I browse to the admin page (start
of Tutorial 2).

Trace follows!

Any help appreciated. Is this a bug or can I just not follow
instructions?

Thanks!
Dave.

AttributeError at /admin/
'module' object has no attribute 'urlpatterns'

Request Method: GET
Request URL:    http://127.0.0.1:8000/admin/
Exception Type: AttributeError
Exception Value:        'module' object has no attribute 'urlpatterns'
Exception
Location:       
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/core/urlresolvers.py
in resolve, line 72
Traceback (innermost last)

Switch to copy-and-paste view

/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/core/handlers/base.py
in get_response
            callback, callback_args, callback_kwargs =
resolver.resolve(path) ...
▶ Local vars
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/core/urlresolvers.py
in resolve
                    sub_match = pattern.resolve(new_path) ...
▶ Local vars
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/core/urlresolvers.py
in resolve
            for pattern in self.urlconf_module.urlpatterns: ...
▶ Local vars









Request information

GET
No GET data
POST
No POST data
COOKIES
Variable        Value
sessionid
'e10a18b23ce54169bd37423713ae48d1'
META
Variable        Value
CLICOLOR
'on'
CONTENT_LENGTH
''
CONTENT_TYPE
'text/plain'
DJANGO_SETTINGS_MODULE
'tmp.settings'
EDITOR
'nano'
GATEWAY_INTERFACE
'CGI/1.1'
HOME
'/Users/Dave'
HTTP_ACCEPT
'*/*'
HTTP_ACCEPT_ENCODING
'gzip, deflate'
HTTP_ACCEPT_LANGUAGE
'en'
HTTP_CONNECTION
'keep-alive'
HTTP_COOKIE
'sessionid=e10a18b23ce54169bd37423713ae48d1'
HTTP_HOST
'127.0.0.1:8000'
HTTP_USER_AGENT
'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/418 (KHTML,
like Gecko) Safari/417.9.2'
LOGNAME
'Dave'
OLDPWD
'/Users/Dave/Sites'
PATH
'/usr/local/bin:/opt/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/mysql/bin:/usr/local/Trolltech/Qt-4.1.2/bin'
PATH_INFO
'/admin/'
PWD
'/Users/Dave/Sites/tmp'
QTDIR
'/usr/local/Trolltech/Qt-4.1.2'
QUERY_STRING
''
REMOTE_ADDR
'127.0.0.1'
REMOTE_HOST
'django.loc'
REQUEST_METHOD
'GET'
RUN_MAIN
'true'
SCRIPT_NAME
''
SECURITYSESSIONID
'7015b0'
SERVER_NAME
'django.loc'
SERVER_PORT
'8000'
SERVER_PROTOCOL
'HTTP/1.1'
SERVER_SOFTWARE
'WSGIServer/0.1 Python/2.4.1'
SHELL
'/bin/bash'
SHLVL
'1'
TERM
'ansi'
TERM_PROGRAM
'iTerm.app'
TZ
'America/Chicago'
USER
'Dave'
_
'/usr/local/bin/python'
__CF_USER_TEXT_ENCODING
'0x1F5:0:0'
wsgi.errors
<open file '<stderr>', mode 'w' at 0x120b0>
wsgi.file_wrapper
<class django.core.servers.basehttp.FileWrapper at 0x2b9ba0>
wsgi.input
<socket._fileobject object at 0x65e848>
wsgi.multiprocess
False
wsgi.multithread
True
wsgi.run_once
False
wsgi.url_scheme
'http'
wsgi.version
(1, 0)
Settings
Using settings module tmp.settings
Setting Value
ABSOLUTE_URL_OVERRIDES
{}
ADMINS
()
ADMIN_FOR
()
ADMIN_MEDIA_PREFIX
'/media/'
ALLOWED_INCLUDE_ROOTS
()
APPEND_SLASH
True
BANNED_IPS
()
CACHE_BACKEND
'simple://'
CACHE_MIDDLEWARE_KEY_PREFIX
''
COMMENTS_ALLOW_PROFANITIES
False
COMMENTS_BANNED_USERS_GROUP
None
COMMENTS_FIRST_FEW
0
COMMENTS_MODERATORS_GROUP
None
COMMENTS_SKETCHY_USERS_GROUP
None
DATABASE_ENGINE
'mysql'
DATABASE_HOST
''
DATABASE_NAME
'tmp'
DATABASE_PASSWORD
'********************'
DATABASE_PORT
''
DATABASE_USER
'root'
DATETIME_FORMAT
'N j, Y, P'
DATE_FORMAT
'N j, Y'
DEBUG
True
DEFAULT_CHARSET
'utf-8'
DEFAULT_CONTENT_TYPE
'text/html'
DEFAULT_FROM_EMAIL
'[EMAIL PROTECTED]'
DISALLOWED_USER_AGENTS
()
EMAIL_HOST
'localhost'
EMAIL_HOST_PASSWORD
'********************'
EMAIL_HOST_USER
''
EMAIL_PORT
25
EMAIL_SUBJECT_PREFIX
'[Django] '
ENABLE_PSYCO
False
IGNORABLE_404_ENDS
('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico',
'.php')
IGNORABLE_404_STARTS
('/cgi-bin/', '/_vti_bin', '/_vti_inf')
INSTALLED_APPS
['django.contrib.auth', 'django.contrib.contenttypes',
'django.contrib.sessions', 'django.contrib.sites',
'django.contrib.admin', 'tmp.polls']
INTERNAL_IPS
()
JING_PATH
'/usr/bin/jing'
LANGUAGES
(('bn', 'Bengali'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'),
('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('es',
'Spanish'), ('fr', 'French'), ('gl', 'Galician'), ('he', 'Hebrew'),
('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('nl',
'Dutch'), ('no', 'Norwegian'), ('pt-br', 'Brazilian'), ('ro',
'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'),
('sr', 'Serbian'), ('sv', 'Swedish'), ('uk', 'Ukrainian'), ('zh-cn',
'Simplified Chinese'), ('zh-tw', 'Traditional Chinese'))
LANGUAGE_CODE
'en-us'
MANAGERS
()
MEDIA_ROOT
''
MEDIA_URL
''
MIDDLEWARE_CLASSES
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.doc.XViewMiddleware')
PREPEND_WWW
False
ROOT_URLCONF
'tmp.urls'
SECRET_KEY
'********************'
SEND_BROKEN_LINK_EMAILS
False
SERVER_EMAIL
'[EMAIL PROTECTED]'
SESSION_COOKIE_AGE
1209600
SESSION_COOKIE_DOMAIN
None
SESSION_COOKIE_NAME
'sessionid'
SESSION_SAVE_EVERY_REQUEST
False
SETTINGS_MODULE
'tmp.settings'
SITE_ID
1
TEMPLATE_CONTEXT_PROCESSORS
('django.core.context_processors.auth',
'django.core.context_processors.debug',
'django.core.context_processors.i18n')
TEMPLATE_DEBUG
True
TEMPLATE_DIRS
()
TEMPLATE_LOADERS
('django.template.loaders.filesystem.load_template_source',
'django.template.loaders.app_directories.load_template_source')
TEMPLATE_STRING_IF_INVALID
''
TIME_FORMAT
'P'
TIME_ZONE
'America/Chicago'
TRANSACTIONS_MANAGED
False
USE_ETAGS
False
You're seeing this error because you have DEBUG = True in your Django
settings file. Change that to False, and Django will display a standard
500 page.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to