--
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...@googlegroups.com.
To post to this group, send email to django...@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/CACwCsY7bk-c7Za-PGUbaEkftA8Xxqd%2BaCUPkaQryW-1kXX0_nQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@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/6f7de077-4082-db30-1cca-168cbce7952c%40dewhirst.com.au.
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 <rgam...@gammascience.co.uk>
--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Enable-WindowsOptionalFeature -Online -FeatureName IIS-CGI
New-WebHandler -Name "DjangoFastCGI" -Path "*" -Verb "GET,POST" -Modules FastCgiModule `
-ResourceType Unspecified -ScriptProcessor "$PYEXE|-m wfastcgi"