From f94e262831ac11d851a2c602f10cc64d7beb2e4b Mon Sep 17 00:00:00 2001 From: JohnYan <84345999@qq.com> Date: Thu, 10 Dec 2020 21:35:46 +0800 Subject: [PATCH] add template --- django_smartchart/settings.py | 3 +- templates/echart/base.html | 64 ++++++++++ templates/echart/common.html | 17 +++ templates/echart/divlist_editor.html | 5 +- templates/echart/editor_min.html | 62 --------- templates/index/index.html | 13 +- templates/source/no_favorite | 184 +++++++++++++++++++++++++++ 7 files changed, 271 insertions(+), 77 deletions(-) create mode 100644 templates/echart/base.html create mode 100644 templates/echart/common.html create mode 100644 templates/source/no_favorite diff --git a/django_smartchart/settings.py b/django_smartchart/settings.py index 8822957..5ed8098 100644 --- a/django_smartchart/settings.py +++ b/django_smartchart/settings.py @@ -56,8 +56,7 @@ ROOT_URLCONF = 'django_smartchart.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [os.path.join(BASE_DIR, 'templates')] - , + 'DIRS': [os.path.join(BASE_DIR, 'templates')], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ diff --git a/templates/echart/base.html b/templates/echart/base.html new file mode 100644 index 0000000..3cefdbc --- /dev/null +++ b/templates/echart/base.html @@ -0,0 +1,64 @@ +