ImportError: cannot import name patterns when access horizon using devstack
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloudkitty |
New
|
Undecided
|
Unassigned |
Bug Description
I followed this link http://
devstack works fine without cloudkitty.After enabling cloudkitty services, horizion shows some error.
Here is the error from horizion_error.log
root@jl044-
2017-07-27 18:23:40.671004 self._wrapped = self._setupfunc()
2017-07-27 18:23:40.671007 File "/opt/stack/
2017-07-27 18:23:40.671010 return self._urls()[0]
2017-07-27 18:23:40.671013 File "/opt/stack/
2017-07-27 18:23:40.671016 import_
2017-07-27 18:23:40.671019 File "/usr/lib/
2017-07-27 18:23:40.671022 __import__(name)
2017-07-27 18:23:40.671025 File "/opt/stack/
2017-07-27 18:23:40.671028 from django.conf.urls import patterns # noqa
2017-07-27 18:23:40.671031 ImportError: cannot import name patterns
Here is how I set up local.conf
[[local|localrc]]
ADMIN_PASSWORD=
DATABASE_
RABBIT_
SERVICE_
# ceilometer
enable_plugin ceilometer https:/
# horizon
enable_service horizon
# cloudkitty
enable_plugin cloudkitty https:/
enable_service ck-api ck-proc
CLOUDKITTY_
I think the problem comes from the version of django. pattern has been deprecated since 1.8 and cloudkitty seems to still use version of 1.8.I have tried to change my latest django to the older version of 1.8, but there are some other errors pop up.
Does anyone can fix this problem?
Thanks
The version of openstack which devstack is using is pike