What are the problems with loading CSS and JS from Django to IIS7?

后端 未结 3 1160
予麋鹿
予麋鹿 2020-12-21 06:23

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

3条回答
  •  一整个雨季
    2020-12-21 06:52

    Right click on your website in IIS7 manager and

    1. add a virtual directory
    2. name it with the same name of your folder you want IIS to handle. lets say static
    3. add the path to your real static folder in your application mine was in myproject/static then ok

    and here you go :)

提交回复
热议问题