Django website on Azure not serving static .mp4 files


Hi, my Django website works fine locally in Visual Studio but does not serve .mp4 files when publish to Azure. Do I need to include the web.config in my VS project and manually edit it? Please help. Thanks!


Zooba wrote May 25, 2014 at 5:45 PM

Are your files in one of the static folders Django will collect static files from? They should end up at http://.../static/file.mp4.

Without modifying web.config, you'll need to include the 'static' in the URL and the deployed directory, since it doesn't use a rewrite rule. PTVS 2.1 will eventually let you specify a rewrite rule, but for now you have to do it manually.