← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1427758] Re: Wrong url pattern in Horizon tutorial

 

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

** Changed in: horizon
    Milestone: None => kilo-3

-- 
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/1427758

Title:
  Wrong url pattern in Horizon tutorial

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  I'm following the Horizon tutorial and the definition of the URL pattern in [1] seems to be wrong. The text says:
  "Replace the existing url pattern with the following line:
  url(r'^\?tab=mypanel_tabs__tab$',
      views.IndexView.as_view(), name='mypanel_tabs'),
  "

  If I run the test server, I get the following error
  Error reversing absolute URL for <Panel: mypanel>: Reverse for 'index' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []
  ...
    File "/var/data/testing-horizon/git-repos/horizon/.venv/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 456, in _reverse_with_prefix
      (lookup_view_s, args, kwargs, len(patterns), patterns))
  NoReverseMatch: Reverse for 'index' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []

  If I change the url pattern with the following:
      url(r'^$', 
          views.IndexView.as_view(), name='index'),

  then the new MyDashboard/Mypanel works.

  [1]
  http://docs.openstack.org/developer/horizon/topics/tutorial.html#urls

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


References