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:
- Use whitenoise -> I got error when I wrote whitenoise tag in middleware. then I stopped use this way
- 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
- default web site
- venv_
- 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?