Skip to content

Commit

Permalink
fix: urls.py reverted
Browse files Browse the repository at this point in the history
  • Loading branch information
zubairshakoorarbisoft committed Aug 1, 2023
1 parent 095b9d0 commit 6f8b823
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions workbench/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,34 @@
from django.conf.urls.static import static
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.urls import path
from django.urls import re_path

from workbench import views

admin.autodiscover()

urlpatterns = [
path('', views.index, name='workbench_index'),
path(
'scenario/<str:scenario_id>/<str:view_name>/',
re_path(r'^$', views.index, name='workbench_index'),
re_path(
r'^scenario/(?P<scenario_id>[^/]+)/(?P<view_name>[^/]+)/$',
views.show_scenario,
name='scenario'
),
path('userlist/',
re_path(r'^userlist/$',
views.user_list,
name='userlist'),
path(
'scenario/<str:scenario_id>/',
re_path(
r'^scenario/(?P<scenario_id>[^/]+)/$',
views.show_scenario,
name='workbench_show_scenario'
),
path(
'view/<str:scenario_id>/<str:view_name>/',
re_path(
r'^view/(?P<scenario_id>[^/]+)/(?P<view_name>[^/]+)/$',
views.show_scenario,
{'template': 'workbench/blockview.html'}
),
path(
'view/<str:scenario_id>/',
re_path(
r'^view/(?P<scenario_id>[^/]+)/$',
views.show_scenario,
{'template': 'workbench/blockview.html'}
),
Expand All @@ -57,8 +56,8 @@
views.package_resource,
name='package_resource'
),
path(
'reset_state',
re_path(
r'^reset_state$',
views.reset_state,
name='reset_state'
),
Expand Down

0 comments on commit 6f8b823

Please sign in to comment.