Thanks. I ran that command, and I checked the settings and CGi is installed and enabled. I have the CGI icon in the IIS config page, but I do not have the FAST-CGI which is what all the docs seem to refer to.
On Tue, Dec 18, 2018 at 10:49 AM Roger Gammans <[email protected]> wrote: > > Larry, > > > My script draws from the following urls all of which I found useful. > > https://docs.microsoft.com/en-us/iis/configuration/system.webserver/fastcgi/ > http://blog.mattwoodward.com/2016/07/running-django-application-on-windows.html > http://mrtn.me/blog/2012/06/27/running-django-under-windows-with-iis-using-fcgi/ > https://www.toptal.com/django/installing-django-on-iis-a-step-by-step-tutorial > https://docs.microsoft.com/en-us/azure/virtual-machines/windows/classic/python-django-web-app > > > I think you might not have all the correct 'features' installed, specifically > you are probably missing CGI. > The PS line to install that seems to be:- > > Enable-WindowsOptionalFeature -Online -FeatureName IIS-CGI > > > Hope this helps a little. > > > On Tue, 2018-12-18 at 10:40 -0500, Larry Martell wrote: > > I am following the instructions I found here: > > https://www.toptal.com/django/installing-django-on-iis-a-step-by-step-tutorial > > I am up to this point: 'Configuring IIS to run a FastCGI application' > It says 'Click OK on the handler information dialog. IIS will then ask > you to confirm the creation of a matching FastCGI application entry > which you will need to confirm. This entry will be visible in the > FastCGI Settings feature, accessible at the root screen of the IIS > Management Console' > > But after I set up the Module Mapping and do the above there is no > entry for the handler in the FastCGI Settings. > > Anyone know what I may be doing wrong or how to proceed? > > > On Tue, Dec 18, 2018 at 4:35 AM Roger Gammans > <[email protected]> wrote: > > > Hi, > > I was looking at this back in November., although I'm not a Powershell or > Windows expert I start to put together a powershell script to automate the > setup, although there was a couple of lose ends. > > Most critically the order of handlers is import and you need to force the > static files handler to be primary for media and static directories as > whatever handler (by script uses fastcgi / wfastcgi.py) use use to interface > with wsgi as primary at the root level. (Eg so media and static overrides the > root with their local config) > > Unfortunately I couldn't find anyway to control the handler ordering through > powershell, I'm waiting on a window colleague to fix it up, but it is no > longer a prioirty as the project as move away form windows hosting. > > If there is interest I'll see what I can do about getting the script public. > > > -- > > Roger Gammans <[email protected]> > Gamma Science > > On Tue, 2018-12-18 at 11:22 +0200, Avraham Serour wrote: > > I feel your pain, once I had to deploy a django project on windows, after > trying many different options I installed cygwin and form there nginx+uwsgi > like any other normal person. > > Today microsoft have WSL, I think you may use that too, you can still use IIS > to route traffic and forward the http connections. Maybe not as efficient as > it could be but I think it will save you headaches. > > Good luck > > On Tue, Dec 18, 2018 at 6:10 AM Mike Dewhirst <[email protected]> wrote: > > On 18/12/2018 2:16 PM, Alex Heyden wrote: > > I have recently, and it was equal parts misery and pain. FastCGI via > wfastcgi, as outlined at > http://blog.mattwoodward.com/2016/07/running-django-application-on-windows.html > > I also had to downgrade from Python 3.7 to Python 3.6 > > I wouldn't really consider myself an expert on the subject. All I can > say is that it is possible. > > > I once had to implement a web service on a Windows server and eventually > installed Apache. That worked brilliantly although it wasn't a heavy > duty application. Django works well on Windows so Apache is a fallback > if IIS doesn't cut it for you. > > > > On Mon, Dec 17, 2018 at 5:19 PM Larry Martell <[email protected] > <mailto:[email protected]>> wrote: > > Anyone have any experience setting up a Django app to work with IIS? I > have inherited what I was told is a working system, but it's not > working. Before I post details of my issues and questions I wanted to > see if anyone here has successfully got a Django app to run with IIS. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACwCsY4kw_0K9gSwf7k_Nc3RV1KUqS0RD%2BHB6ciXp8_RdapGZA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

