python - Azure App Service - url for website not working -
i have been trying publish first ever django web application , going through many hurdles on last 2 days, still unable access via url - it's not live.
i have published vs2017, set continuous deployment vsts, installed python 3.6 extension, updated web.config file, installed required packages in kudu, app redirected cloud-based data base.
i followed various documentation sites letter e.g.: deploy app azure app service , managing python on azure app service still can't browse url - getting welcome page saying "your app service app has been created" , tutorials.
what missing? final stage need make go live?
responding comment below, have updated web.config file in kudu following code:
<?xml version="1.0" encoding="utf-8"?> <configuration> <appsettings> <add key="pythonpath" value="d:\home\site\wwwroot"/> <add key="wsgi_handler" value="app.wsgi_app"/> <add key="wsgi_log" value="d:\home\logfiles\wfastcgi.log"/> </appsettings> <system.webserver> <handlers> <add name="pythonhandler" path="*" verb="*" modules="fastcgimodule" scriptprocessor="d:\home\python361x64\python.exe|d:\home\python361x64\wfastcgi.py" resourcetype="unspecified" requireaccess="script"/> </handlers> </system.webserver> </configuration> when trying run url getting internal server error, , when go python log file getting following message:
d:\home\python361x64\python.exe: can't open file 'd:\home\site\wwwroot\runserver.py': [errno 2] no such file or directory
it seems had solved partial issues in thread how deploy django app on azure?, have solved , posted answer.
please refer , completed configuration below:
<configuration> <appsettings> <add key="wsgi_handler" value="djangowebproject1.wsgi.application"/> <add key="pythonpath" value="d:\home\site\wwwroot"/> <add key="wsgi_log" value="d:\home\logfiles\wfastcgi.log"/> </appsettings> <system.webserver> <handlers> <add name="pythonhandler" path="handler.fcgi" verb="*" modules="fastcgimodule" scriptprocessor="d:\home\python362x86\python.exe|d:\home\python362x86\wfastcgi.py" resourcetype="unspecified" requireaccess="script"/> </handlers> <rewrite> <rules> <rule name="static files" stopprocessing="true"> <conditions> <add input="true" pattern="false" /> </conditions> </rule> <rule name="configure python" stopprocessing="true"> <match url="(.*)" ignorecase="false" /> <conditions> <add input="{request_uri}" pattern="^/static/.*" ignorecase="true" negate="true" /> </conditions> <action type="rewrite" url="handler.fcgi/{r:1}" appendquerystring="true" /> </rule> </rules> </rewrite> </system.webserver> </configuration>
Comments
Post a Comment