Skip to content
Advertisement

Static Files from Site working, but not from app

Some confusion about static files (Python 3.6 Django 2.. IIS 8.5) My static files from site are found but the static files from the app are not found.

JavaScript

I tried to add

JavaScript

to the settings.py but did not help.

Do I have to add a web.config also in the app static like in the site static folder?

JavaScript

For IIS configuration i used this tutorial: http://blog.mattwoodward.com/2016/07/running-django-application-on-windows.html

settings.py

JavaScript

Project structure

Advertisement

Answer

I found the Problem. Thx for help!

I don’t understand why IIS is not refreshing the VirtualDirectory. I refreshed x times the website and restarted it. But the pyapp folder in static was not visible until i set the physical path again.

JavaScript

Is this a bug or should I know this?

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement