Azure-Samples / app-service-web-python-get-started

This Python (Django) sample app is used by the getting started content to demonstrate how easy it is to develop a web app and deploy it to Azure App Service.
MIT License
34 stars 210 forks source link

Static files aren't being served #2

Closed mikespub closed 8 years ago

mikespub commented 8 years ago

When deploying this sample as is (after fixing the yellow screen of death), static files aren't being served and Django complains that it can't find ^static defined in urls.py.

cephalin commented 8 years ago

I also can't reproduce this error, but could get something similar IF I access the app before the deployment process finishes. If deployment hasn't copied the files to wwwroot/static yet, then I get a page without CSS/JS, and the F12 view shows that all the access to the /static/... files return 404. No complaint by Django though. That maybe some custom debugging in your setup?

In any case, after I waited until deployment finishes, I get the expected page no problem.

mikespub commented 8 years ago

Thanks, I'll close this one and leave it in issue #1 to adapt the documentation if possible.