模板下载下来后 首先将 js css 等文件分离
这种结构比较合理
templates当中存放html文件
static当中存放css等文件
修改dirs的位置 指向放html的文件夹
'DIRS': [BASE_DIR+"/templates",], # 修改位置
修改地区
增加staticfiles_dirs 变量 将文件夹地址都放入
LANGUAGE_CODE = 'zh-hans'
TIME_ZONE = 'Asia/Shanghai'
USE_I18N = True
USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.2/howto/static-files/
STATIC_URL = '/static/'
HERE = os.path.dirname(os.path.abspath(__file__))
HERE = os.path.join(HERE, '../')
STATICFILES_DIRS = (
os.path.join(HERE, 'static/'),
os.path.join(HERE, 'templates/'),
)