File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1515"""
1616from django .contrib import admin
1717from django .urls import include , path
18+ from django .conf .urls import url
1819
1920from django .views .generic import TemplateView
2021
2122# Load demo plotly apps
2223import demo .plotly_apps
2324
2425urlpatterns = [
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
You can’t perform that action at this time.
0 commit comments