Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第六章 P122 关于自定义静态资源引入的问题 #48

Open
SniperM99 opened this issue Feb 19, 2020 · 0 comments
Open

第六章 P122 关于自定义静态资源引入的问题 #48

SniperM99 opened this issue Feb 19, 2020 · 0 comments

Comments

@SniperM99
Copy link

按照书上提示 , 将 css 与 js 引入到自定义的 class Media 中
代码片段如下:

    class Media:
        css = {
            'all' : ('https://cdn.bootcss.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css'),
        }
        js = ('https://cdn.bootcss.com/bootstrap/4.0.0-beta.2/js/bootstrap.bundle.js',)

当运行 runserver 后, 页面无任何变化 , 提示框里提示很多
"GET /static/.* HTTP/1.1" 404 1616 的字样(.*表示出现的各种字符统称)

请问是否正确?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant