← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1458436] [NEW] wrong url in document of horizon tutorial

 

Public bug reported:

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.

** Affects: horizon
     Importance: Undecided
     Assignee: Canh Truong (canh-v-truong)
         Status: New


** Tags: documentation

** Changed in: horizon
     Assignee: (unassigned) => Canh Truong (canh-v-truong)

-- 
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):
  New

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.

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


Follow ups

References