[Fixed]-Django URL Error in Azure web app

1👍

WARNING: the default configuration filters potentially dangerous URLs. The following will disable this protection. Do that knowingly.

You could replace this portion of the web.Config

<system.web>
    <compilation debug="true" targetFramework="4.0" />
</system.web>

by this one

<system.web>
    <httpRuntime requestValidationMode="2.0" requestPathInvalidCharacters="" />
    <compilation debug="true" targetFramework="4.0" />
</system.web>

Explanations are available here: https://msdn.microsoft.com/en-us/library/e1f13641(v=vs.100).aspx

You can edit the web.Config file from testApp.scm.azurewebsites.net (same credentials as for portal.azure.com), Debug Console, CMD, then cd site\wwwroot. Scroll down to web.Config, you’ll find a logo with a pen on the left that will open a text editor in the browser.

Screen shot of Kudu (scm) environment

Leave a comment