Error with the content of the Horizon dashboard tutorial at http://docs.openstack.org/developer/horizon/topics/table_actions.html#adding-the-url
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Invalid
|
Low
|
Varsha |
Bug Description
This tutorial specifies the following changes to be made to urls.py file:
from django.conf.urls import url
from openstack_
urlpatterns = [,
url(r'^$',
url(
]
After this change has been made, and after I restart the httpd I get an error in the horizon_error.log as posted below:
__import__(name)
[:error] [pid 11724] [remote 172.22.225.42:0] File "/usr/share/
[:error] [pid 11724] [remote 172.22.225.42:0] urlpatterns = [,
[:error] [pid 11724] [remote 172.22.225.42:0] ^
[:error] [pid 11724] [remote 172.22.225.42:0] SyntaxError: invalid syntax
To fix this issue, we need to remove the comma next to the opening square bracket in urlpatterns = [,
The resulting code should look like:
urlpatterns = [
url(r'^$',
url(
]
description: | updated |
Changed in horizon: | |
assignee: | nobody → Varsha (varsha-jayaraj94) |
status: | New → In Progress |
Changed in horizon: | |
status: | In Progress → New |
Changed in horizon: | |
importance: | Undecided → Low |
tags: | added: low-hanging-fruit |
This is already fixed in master branch. For more information please refer [1]. So marking it as invalid.
[1] https:/ /github. com/openstack/ horizon/ blob/master/ doc/source/ contributor/ tutorials/ dashboard. rst#urls