← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1458436] Re: wrong url in document of horizon tutorial

 

** Changed in: horizon
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1458436

Title:
  wrong url in document of horizon tutorial

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  I follow the steps in tutorial "Adding a complex action to a table"
  and I get the error when run again horizon:

  Error reversing absolute URL for <Panel: mypanel>: Reverse for 'index' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []
  Internal Server Error: /admin/
  Traceback (most recent call last):
    File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 137, in get_response
      response = response.render()
    File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/django/template/response.py", line 103, in render
      self.content = self.rendered_content
    File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/django/template/response.py", line 80, in rendered_content
      content = template.render(context)
    File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/django/template/base.py", line 148, in render
      return self._render(context)
  ...
     (lookup_view_s, args, kwargs, len(patterns), patterns))
  NoReverseMatch: Reverse for 'index' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []

  The url pattern is wrong. Change it as :
  urlpatterns = patterns('',
      url(r'^$',
          views.IndexView.as_view(), name='index'),
      url(r'^(?P<instance_id>[^/]+)/create_snapshot/$',
          views.CreateSnapshotView.as_view(),
          name='create_snapshot'),
  )
  is okei.

  Tutorial at:
  http://docs.openstack.org/developer/horizon/topics/table_actions.html

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1458436/+subscriptions


References