TypeError with django-1.8

Bug #1425892 reported by Matthias Runge
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Matthias Runge

Bug Description

[root@turing openstack-dashboard]# ./manage.py runserver
Traceback (most recent call last):
  File "./manage.py", line 23, in <module>
  File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute_from_command_line
  File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 303, in execute
  File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 48, in __getattr__
  File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 44, in _setup
    self._wrapped = Settings(settings_module)
  File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 92, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
  File "/usr/share/openstack-dashboard/openstack_dashboard/settings.py", line 255, in <module>
    from local.local_settings import * # noqa
  File "/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.py", line 99, in <module>
    from horizon.utils import secret_key
  File "/usr/lib/python2.7/site-packages/horizon/__init__.py", line 27, in <module>
    from horizon.base import Dashboard # noqa
  File "/usr/lib/python2.7/site-packages/horizon/base.py", line 45, in <module>
    from horizon import loaders
  File "/usr/lib/python2.7/site-packages/horizon/loaders.py", line 57, in <module>
    _loader = TemplateLoader()
  File "/usr/lib/python2.7/site-packages/django/template/loader.py", line 155, in __init__
    super(BaseLoader, self).__init__(*args, **kwargs)
TypeError: __init__() takes exactly 2 arguments (1 given)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/161117

Changed in horizon:
assignee: nobody → Matthias Runge (mrunge)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/161117
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=e77dfcab4c239ac1722a1523a822842f64dfec8c
Submitter: Jenkins
Branch: master

commit e77dfcab4c239ac1722a1523a822842f64dfec8c
Author: Matthias Runge <email address hidden>
Date: Fri Feb 13 08:29:22 2015 +0100

    Add Django-1.7 support

    And add initial Django-1.8 fixes

    - skip unittests until exceptions are fixed
    - Django-1.8 changed the way TemplateLoaders are initialized.
    - django.middleware.doc.XViewMiddleware is removed.
    - SessionAuthenticationMiddleware was added and will be mandatory for

    Closes-Bug: #1425892
    Partially Implements: blueprint django18

    Change-Id: Idfd3f494db7b11a66e2262c9520be88b098fbb7b

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
milestone: none → kilo-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: kilo-3 → 2015.1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.