Skip to content

Commit c03c732

Browse files
author
Mark Gibbs
committed
Switch demo urls to use url function for backwards compatibility
1 parent d7c8879 commit c03c732

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

demo/demo/urls.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,18 @@
1515
"""
1616
from django.contrib import admin
1717
from django.urls import include, path
18+
from django.conf.urls import url
1819

1920
from django.views.generic import TemplateView
2021

2122
# Load demo plotly apps
2223
import demo.plotly_apps
2324

2425
urlpatterns = [
25-
path('', TemplateView.as_view(template_name='index.html'), name="home"),
26-
path('second_page', TemplateView.as_view(template_name='second_page.html'), name="second"),
27-
path('admin/', admin.site.urls),
28-
path('django_plotly_dash/', include('django_plotly_dash.urls')),
26+
url('^$', TemplateView.as_view(template_name='index.html'), name="home"),
27+
url('^second_page$', TemplateView.as_view(template_name='second_page.html'), name="second"),
28+
url('^admin/', admin.site.urls),
29+
url('^django_plotly_dash/', include('django_plotly_dash.urls')),
2930
]
3031

3132
# Add in static routes so daphne can serve files; these should be masked eg with nginx for production use

0 commit comments

Comments
 (0)