1 Create a django project: Visualization and APP: Demo
>>django-admin startproject Visualization
>>python manage.py startapp Demo
2 Configuration settings.py
① Insert Demo
② configuration template path
----BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
----TEMPLATES = [
'DIRS': [os.path.join (BASE_DIR, 'templates') replace ( '\\', '/').], # Modify the template directory]
----STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static_collected')
----supplement
LANGUAGE_CODE = # 'EN-US'
LANGUAGE_CODE = 'Hans-ZH' Simplified Chinese #
# TIME_ZONE = 'UTC'
TIME_ZONE = 'Asia / of Shanghai' time zone #
③ create templates and static in the APP Demo Lane, templates in New test.html
………………waiting for update…………