Opened 16 years ago

Closed 16 years ago

Last modified 13 years ago

#8086 closed (fixed)

r8186 breaks python 2.4

Reported by: CHasenpflug Owned by: nobody
Component: contrib.admin Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Just started a new project against r8186 using Python 2.4.3 on Mac OS 10.4.

ImproperlyConfigured at /admin/
Error while importing URLconf 'buildbotweb.urls': import() takes no keyword arguments

Environment:

Request Method: GET
Request URL: http://localhost:8000/admin/
Django Version: 1.0-alpha-SVN-8187
Python Version: 2.4.3
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.admin']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.middleware.doc.XViewMiddleware')


Traceback:
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/core/handlers/base.py" in get_response
  77.             callback, callback_args, callback_kwargs = resolver.resolve(
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/core/urlresolvers.py" in resolve
  238.             for pattern in self.urlconf_module.urlpatterns:
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/core/urlresolvers.py" in _get_urlconf_module
  262.                 raise ImproperlyConfigured, "Error while importing URLconf %r: %s" % (self.urlconf_name, e)

Exception Type: ImproperlyConfigured at /admin/
Exception Value: Error while importing URLconf 'buildbotweb.urls': __import__() takes no keyword arguments

Attachments (1)

load_session_before_save.diff (2.1 KB ) - added by mrts 16 years ago.
The DRY version. Note that this is backwards-incompatible for custom backends. Tested with r8187

Download all attachments as: .zip

Change History (4)

comment:1 by Brian Rosner, 16 years ago

Resolution: fixed
Status: newclosed

(In [8188]) Fixed #8086 -- Removed 2.5 specific keyword argument to import. Thanks CHasenpflug for noticing this.

by mrts, 16 years ago

The DRY version. Note that this is backwards-incompatible for custom backends. Tested with r8187

comment:2 by mrts, 16 years ago

Sorry, wrong ticket.

comment:3 by Jacob, 13 years ago

milestone: 1.0 beta

Milestone 1.0 beta deleted

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