0

I read some similar issue on Stack Overflow but still stuck with this problem. The web Django can deploy on IIS well except CSS style for admin and all CSS.

What I tried:

  1. Use whitenoise -> I got error when I wrote whitenoise tag in middleware. then I stopped use this way
  2. Use add virtual directory more information -> I created virtual enviroment venv_>my django>app folder honestly, I really don't know where virtual directory (named static) should be, then I tried at
    1. default web site
    2. venv_
    3. my project folder (my static folder after use collectstatic Django) I tried to use path physical to (my static folder after use collectstatic Django) it still not working

More information:

I used findstatic but got another path not (collectstatic path in my project app) it is in my venv_ package?

2
  • stackoverflow.com/questions/32312590/… i tried this one too Commented Sep 16, 2021 at 9:02
  • What about host static files on IIS directly and refer them as links on Django application? For example http://xxxx/abc/xyz.css. Commented Sep 17, 2021 at 8:38

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.