开发者

problem with django templating system

开发者 https://www.devze.com 2022-12-13 08:46 出处:网络
I\'m having a problem with the django templating system. I have a template with html, css, and js. When I use this template for my site, all of its margins and paddings change, and my template seems

I'm having a problem with the django templating system.

I have a template with html, css, and js. When I use this template for my site, all of its margins and paddings change, and my template seems to become another template. For example margin 0 auto; seems to become margin 0 0;.

Note: I have a temp.html file and, for example, in the index of my home app, I have a file index.html that contains a {% extends "temp.html" %} tag and other block that they are in temp.html. (ed: ?)

If you need more 开发者_JAVA百科code, please let me know.


You will need to make use of Django's built-in media hooks and relative URLs:

Django media URLs in CSS files

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号