Django css js 不显示问题

步骤如下:

新建static

引入资源

添加路径

STATICFILES_DIRS = (
    os.path.join(BASE_DIR, 'static/'),

)

修改路径:

<script src="/static/js/login.js"></script>

添加,
{% load staticfiles %}
去除:
<Document html>

posted @ 2018-01-07 00:19  雷大侠!  阅读(2761)  评论(1编辑  收藏  举报