Larry,
My script draws from the following urls all of which I found useful. https://docs.microsoft.com/en-us/iis/configuration/system.webserver/fa stcgi/ http://blog.mattwoodward.com/2016/07/running-django-application-on-win dows.html http://mrtn.me/blog/2012/06/27/running-django-under-windows-with-iis-u sing-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/classi c/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 > <rgamm...@gammascience.co.uk> 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 <rgamm...@gammascience.co.uk>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 <mi...@dewhirst.com.a > > u> 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-o > > > n-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 > > eventuallyinstalled Apache. That worked brilliantly although it > > wasn't a heavyduty application. Django works well on Windows so > > Apache is a fallbackif IIS doesn't cut it for you. > > > > > On Mon, Dec 17, 2018 at 5:19 PM Larry Martell <larry.martell@gmai > > > l.com > > > <mailto:larry.mart...@gmail.com>> 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 django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. 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/1545148053.14784.36.camel%40gammascience.co.uk. For more options, visit https://groups.google.com/d/optout.