Merge "Fix PEP8 issues in the panel template"
This commit is contained in:
commit
b38693089b
|
@ -399,10 +399,12 @@ The auto-generated ``urls.py`` file is like::
|
|||
from django.conf.urls import patterns
|
||||
from django.conf.urls import url
|
||||
|
||||
from .views import IndexView
|
||||
from openstack_dashboard.dashboards.mydashboard.mypanel.views \
|
||||
import IndexView
|
||||
|
||||
|
||||
urlpatterns = patterns('',
|
||||
urlpatterns = patterns(
|
||||
'',
|
||||
url(r'^$', IndexView.as_view(), name='index'),
|
||||
)
|
||||
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
from django.conf.urls import patterns
|
||||
from django.conf.urls import url
|
||||
|
||||
from .views import IndexView
|
||||
from {{ dash_path }}.{{ panel_name }}.views \
|
||||
import IndexView
|
||||
|
||||
|
||||
urlpatterns = patterns('',
|
||||
urlpatterns = patterns(
|
||||
'',
|
||||
url(r'^$', IndexView.as_view(), name='index'),
|
||||
)
|
Loading…
Reference in New Issue