urlpatterns = [, url(r'^$', views.IndexView.as_view(), name='index'), url(r'^(?P<instance_id>[^/]+)/create_snapshot/$', views.CreateSnapshotView.as_view(), name='create_snapshot'), ]
Still gives an error for me? I removed the comma as such:
urlpatterns = [ url(r'^$', views.IndexView.as_view(), name='index'), url(r'^(?P<instance_id>[^/]+)/create_snapshot/$', views.CreateSnapshotView.as_view(), name='create_snapshot'), ]
And it worked!
urlpatterns = [,
views. IndexView. as_view( ), name='index'), r'^(?P< instance_ id>[^/] +)/create_ snapshot/ $',
views. CreateSnapshotV iew.as_ view(),
name=' create_ snapshot' ),
url(r'^$',
url(
]
Still gives an error for me? I removed the comma as such:
urlpatterns = [
views. IndexView. as_view( ), name='index'), r'^(?P< instance_ id>[^/] +)/create_ snapshot/ $',
views. CreateSnapshotV iew.as_ view(),
name=' create_ snapshot' ),
url(r'^$',
url(
]
And it worked!