Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#8086 closed (fixed)

r8186 breaks python 2.4

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

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

  • Resolution set to fixed
  • Status changed from new to closed

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

Changed 7 years ago by mrts

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

comment:2 Changed 7 years ago by mrts

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

Sorry, wrong ticket.

comment:3 Changed 4 years ago by jacob

  • milestone 1.0 beta deleted

Milestone 1.0 beta deleted

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