<legend id='Ljovp'><style id='Ljovp'><dir id='Ljovp'><q id='Ljovp'></q></dir></style></legend>

<small id='Ljovp'></small><noframes id='Ljovp'>

      <tfoot id='Ljovp'></tfoot>

      • <bdo id='Ljovp'></bdo><ul id='Ljovp'></ul>
      <i id='Ljovp'><tr id='Ljovp'><dt id='Ljovp'><q id='Ljovp'><span id='Ljovp'><b id='Ljovp'><form id='Ljovp'><ins id='Ljovp'></ins><ul id='Ljovp'></ul><sub id='Ljovp'></sub></form><legend id='Ljovp'></legend><bdo id='Ljovp'><pre id='Ljovp'><center id='Ljovp'></center></pre></bdo></b><th id='Ljovp'></th></span></q></dt></tr></i><div id='Ljovp'><tfoot id='Ljovp'></tfoot><dl id='Ljovp'><fieldset id='Ljovp'></fieldset></dl></div>
    1. 从 Django 加载 CSS 和 JS 到 IIS7 有什么问题?

      What are the problems with loading CSS and JS from Django to IIS7?(从 Django 加载 CSS 和 JS 到 IIS7 有什么问题?)
          <tbody id='Jl2Kv'></tbody>
        • <bdo id='Jl2Kv'></bdo><ul id='Jl2Kv'></ul>

          <small id='Jl2Kv'></small><noframes id='Jl2Kv'>

          <tfoot id='Jl2Kv'></tfoot>

          <i id='Jl2Kv'><tr id='Jl2Kv'><dt id='Jl2Kv'><q id='Jl2Kv'><span id='Jl2Kv'><b id='Jl2Kv'><form id='Jl2Kv'><ins id='Jl2Kv'></ins><ul id='Jl2Kv'></ul><sub id='Jl2Kv'></sub></form><legend id='Jl2Kv'></legend><bdo id='Jl2Kv'><pre id='Jl2Kv'><center id='Jl2Kv'></center></pre></bdo></b><th id='Jl2Kv'></th></span></q></dt></tr></i><div id='Jl2Kv'><tfoot id='Jl2Kv'></tfoot><dl id='Jl2Kv'><fieldset id='Jl2Kv'></fieldset></dl></div>
            <legend id='Jl2Kv'><style id='Jl2Kv'><dir id='Jl2Kv'><q id='Jl2Kv'></q></dir></style></legend>

                本文介绍了从 Django 加载 CSS 和 JS 到 IIS7 有什么问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我已成功将我的 Django 站点部署到 IIS7,但在如何配置 IIS 以提供静态文件时仍然存在问题.我从互联网上尝试了很多东西,但似乎没有任何效果.在 Django 服务器 (manage.py runserver) 和 debug = True 上一切正常,但只要我关闭调试 (debug = False) 并在 IIS 上打开,bootstrap css 和 js 没有加载.

                I successfully deployed my Django site to IIS7 but I still have problems about how to configure IIS to serve the static files. I tried many many things from the internet but nothing seems to work. Everything is working fine on Django server (manage.py runserver) and with debug = True, but as soon as I turn off debug (debug = False) and open it on IIS, the bootstrap css and js are not loaded.

                您对我为什么会遇到这种行为有任何想法吗?也许您可以向我指出一个分步指南来帮助我?

                Do you have any ideas about why I'm experiencing this behavior? Perhaps you could point me to a step-by-step guide to help me?

                推荐答案

                在 IIS7 管理器中右键单击您的网站并

                Right click on your website in IIS7 manager and

                1. 添加虚拟目录
                2. 使用您希望 IIS 处理的文件夹的相同名称来命名它.假设是静态的
                3. 在你的应用程序中添加你真正的静态文件夹的路径我在 myproject/static 然后确定

                你去吧:)

                这篇关于从 Django 加载 CSS 和 JS 到 IIS7 有什么问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                What happens when you compare 2 pandas Series(当你比较 2 个 pandas 系列时会发生什么)
                Quickly find differences between two large text files(快速查找两个大文本文件之间的差异)
                Python - Compare 2 files and output differences(Python - 比较 2 个文件和输出差异)
                Why do comparisions between very large float values fail in python?(为什么在 python 中非常大的浮点值之间的比较会失败?)
                Dictionary merge by updating but not overwriting if value exists(字典通过更新合并,但如果值存在则不覆盖)
                Find entries of one text file in another file in python(在python中的另一个文件中查找一个文本文件的条目)

                <small id='37exi'></small><noframes id='37exi'>

                • <i id='37exi'><tr id='37exi'><dt id='37exi'><q id='37exi'><span id='37exi'><b id='37exi'><form id='37exi'><ins id='37exi'></ins><ul id='37exi'></ul><sub id='37exi'></sub></form><legend id='37exi'></legend><bdo id='37exi'><pre id='37exi'><center id='37exi'></center></pre></bdo></b><th id='37exi'></th></span></q></dt></tr></i><div id='37exi'><tfoot id='37exi'></tfoot><dl id='37exi'><fieldset id='37exi'></fieldset></dl></div>

                  1. <legend id='37exi'><style id='37exi'><dir id='37exi'><q id='37exi'></q></dir></style></legend>
                  2. <tfoot id='37exi'></tfoot>
                          <tbody id='37exi'></tbody>

                          <bdo id='37exi'></bdo><ul id='37exi'></ul>