G3-'module' object has no attribute 'urls'

asked 2013-02-27 20:53:43 -0600

vijayrg gravatar image

Cannot access horizon dashboard. Getting 'module' object has no attribute 'urls' error. django-compressor is successfully installed.

AttributeError at / 'module' object has no attribute 'urls'Request Method: GET Request URL: http://x.x.x.x:8000/ Django Version: 1.5 Exception Type: AttributeError Exception Value: 'module' object has no attribute 'urls' Exception Location: /home/localadmin/grizzly3downloads/horizon-2013.1.g3/openstack_dashboard/urls.py in , line 36 Python Executable: /home/localadmin/grizzly3downloads/horizon-2013.1.g3/.venv/bin/python Python Version: 2.7.3 Python Path: ['/home/localadmin/grizzly3downloads/horizon-2013.1.g3', '/home/localadmin/grizzly3downloads/horizon-2013.1.g3/.venv/local/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg', '/home/localadmin/grizzly3downloads/horizon-2013.1.g3/.venv/local/lib/python2.7/site-packages/psycopg2-2.4.6-py2.7-linux-x86_64.egg', '/home/localadmin/grizzly3downloads/horizon-2013.1.g3/.venv/lib/python2.7', '/home/localadmin/grizzly3downloads/horizon-2013.1.g3/.venv/lib/python2.7/plat-linux2', '/home/localadmin/grizzly3downloads/horizon-2013.1.g3/.venv/lib/python2.7/lib-tk', '/home/localadmin/grizzly3downloads/horizon-2013.1.g3/.venv/lib/python2.7/lib-old', '/home/localadmin/grizzly3downloads/horizon-2013.1.g3/.venv/lib/python2.7/lib-dynload', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/home/localadmin/grizzly3downloads/horizon-2013.1.g3/.venv/local/lib/python2.7/site-packages', '/home/localadmin/grizzly3downloads/horizon-2013.1.g3/openstack_dashboard']

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-02-28 06:34:56 -0600

david-lyle gravatar image

The likely cause of your problem is that the pip-requires is pulling in Django 1.5. The django project posted version 1.5 after g3 was tagged that is not compatible with g3 of Horizon.

There are two ways to fix this. The is a post g3 commit merge that pins the django version to >=1.4 and <1.5 -or- you can edit the tools/pip-requires line that reads "Django>=1.4" to "Django>=1.4,<1.5"

You will then need to rebuild your .venv by either removing the .venv directory and running run_test.sh -V again or just run run_test.sh -V -f.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-02-27 20:53:43 -0600

Seen: 143 times

Last updated: Feb 28 '13