Re: Django on IIS

2018-12-19 Thread Larry Martell
Thanks very much Roger. I ran your command (updated for my system),
and then it started working.

On Tue, Dec 18, 2018 at 4:31 PM Roger Gammans
 wrote:
>
> Larry,
>
>
> Hmm, you may have reached the end of how I can help, but two things come to 
> mind:-
>
> 1 It might be worth trying a reboot, to ensure IIS and dependent services are 
> all reloaded.
> 2 I'm not sure the icon was created; I think I had to manually add the 
> handler which created the icon. ( remember
> having to select the name dome a combo select box. at one point)
>
> My script goes straight on from the adding the features, to install python 
> and then create a fastcgi handler with
>
>
> New-WebHandler -Name "DjangoFastCGI" -Path "*" -Verb "GET,POST" -Modules 
> FastCgiModule `
>
>-ResourceType Unspecified -ScriptProcessor "$PYEXE|-m 
> wfastcgi"
>
>
> (I've manually wrapped the above and added a '`' as the line continuation 
> character ; and note the PYEXE variable
> which would have been set to "C:\python36\python.exe" in my case. )
>
> Which is the command line version of point 2 above.
>
> IIS also a has a tendency to read a web.config XML in the IIS site root; from 
> which I think a lot of this can be set from. You can certainly set 
> environment variable there (such as PYTHONPATH , or DJANGO_SETTINGS_MODULE ).
>
>
> HTH,
> --
> Roger
>
> On Tue, 2018-12-18 at 12:07 -0500, Larry Martell wrote:
>
> 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
>  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
>  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 
> 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 

Re: Django on IIS

2018-12-18 Thread Roger Gammans
Larry,


Hmm, you may have reached the end of how I can help, but two things
come to mind:-

1  It might be worth trying a reboot, to ensure IIS and
dependent services are all reloaded.
   2  I'm not sure the icon was created; I think I had to manually
add the handler which created the icon. ( remember
   having to select the name dome a combo select box. at one point)

My script goes straight on from the adding the features, to install
python and then create a fastcgi handler with

New-WebHandler -Name "DjangoFastCGI" -Path "*" -Verb "GET,POST"
-Modules FastCgiModule `   -ResourceType
Unspecified -ScriptProcessor "$PYEXE|-m wfastcgi"
(I've manually wrapped the above and added a '`' as the line
continuation  character ; and note the PYEXE variable 
which would have been set to "C:\python36\python.exe" in my case. )

Which is the command line version of point 2 above.

IIS also a has a tendency to read a web.config XML in the IIS site
root; from which I think a lot of this can be set from. You can
certainly set environment variable there (such as PYTHONPATH , or
DJANGO_SETTINGS_MODULE ).

HTH, 
-- 
Roger

On Tue, 2018-12-18 at 12:07 -0500, Larry Martell wrote:
> 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
>  wrote:
> > Larry,
> > 
> > 
> > My script draws from the following urls all of which I found
> > useful.
> > 
> >  https://docs.microsoft.com/en-us/iis/configuration/system.webserve
> > r/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-ii
> > s-using-fcgi/
> > https://www.toptal.com/django/installing-django-on-iis-a-step-by-st
> > ep-tutorial
> > https://docs.microsoft.com/en-us/azure/virtual-machines/windows/cla
> > ssic/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-st
> > ep-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
> >  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 
> > 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 

Re: Django on IIS

2018-12-18 Thread Roger Gammans
On 18 December 2018 17:28:41 GMT, Larry Martell  wrote:
>Get-WindowsFeature shows that web-cgi is installed but not iis-cgi.
>Are these the same?
>
Maybe. I think they Microsoft renamed on to the other. My script was for the 
most recent iteration of windows server.


-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

-- 
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/9E5B7EE1-4E12-45A7-9E96-9CA79604882A%40gammascience.co.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Django on IIS

2018-12-18 Thread Larry Martell
Get-WindowsFeature shows that web-cgi is installed but not iis-cgi.
Are these the same?

On Tue, Dec 18, 2018 at 12:07 PM Larry Martell  wrote:
>
> 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
>  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
> >  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 
> > 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  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 

Re: Django on IIS

2018-12-18 Thread Larry Martell
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
 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
>  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 
> 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  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  <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/CACwCsY4kw_0K9gSwf7k_Nc3RV1KUqS0RD%2BHB6ciXp8_RdapGZA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django on IIS

2018-12-18 Thread Roger Gammans
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
>  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 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  > 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  > > 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.


Re: Django on IIS

2018-12-18 Thread vishal sharma
Can someone send me the code of upload multiple files from admin Django?

On Tue, 18 Dec 2018 at 4:49 AM, Larry Martell 
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/CACwCsY7bk-c7Za-PGUbaEkftA8Xxqd%2BaCUPkaQryW-1kXX0_nQ%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADdVhnb7Gn_FoM5SuM0USdTc6uf3mJOCQdVtNvKM0OAxBi35uw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django on IIS

2018-12-18 Thread Larry Martell
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
 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 
> 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  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  > <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/CACwCsY4PLHrBawiS9mRvWj13xkaZ_td4Gk%3DmhZAJB9dGr1_H8g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django on IIS

2018-12-18 Thread Roger Gammans

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 
> 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
> > 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  > l.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@googlegroup
> > s.com
> > 
> > > .
> > 
> > > Visit this group at https://groups.google.com/group/django-us
> > ers.
> > 
> > > To view this discussion on the web visit
> > 
> > > https://groups.google.com/d/msgid/django-users/CACwCsY7bk-c7Z
> > a-PGUbaEkftA8Xxqd%2BaCUPkaQryW-1kXX0_nQ%40mail.gmail.com.
> > 
> > > For more options, visit https://groups.google.com/d/optout.
> > 
> > >
> > 
> > > -- 
> > 
> > > 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-us...@googlegroups.co
> > m 
> > 
> > > .
> > 
> > > 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/CA%2Bv0ZYVWO5bFTx%
> > 3D6im_dLWwPWz1FoDcFVDN9GXREj%3Dp49f2FcA%40mail.gmail.com 
> > 
> > >  > %3D6im_dLWwPWz1FoDcFVDN9GXREj%3Dp49f2FcA%40mail.gmail.com?utm_mediu
> > m=email&utm_source=footer>.
> > 
> > > For more options, visit https://groups.google.com/d/optout.
> > 
> > 
> > 


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 
Gamma Science

-- 
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 discu

Re: Django on IIS

2018-12-18 Thread Avraham Serour
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  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  > > 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/CACwCsY7bk-c7Za-PGUbaEkftA8Xxqd%2BaCUPkaQryW-1kXX0_nQ%40mail.gmail.com
> .
> > For more options, visit https://groups.google.com/d/optout.
> >
> > --
> > 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/CA%2Bv0ZYVWO5bFTx%3D6im_dLWwPWz1FoDcFVDN9GXREj%3Dp49f2FcA%40mail.gmail.com
> > <
> https://groups.google.com/d/msgid/django-users/CA%2Bv0ZYVWO5bFTx%3D6im_dLWwPWz1FoDcFVDN9GXREj%3Dp49f2FcA%40mail.gmail.com?utm_medium=email&utm_source=footer
> >.
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> 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/6f7de077-4082-db30-1cca-168cbce7952c%40dewhirst.com.au
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAFWa6tJta-WGGnfsMn5OKB3GsqzPh%2B73L4kH-KiefjNAA44FbQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django on IIS

2018-12-17 Thread Mike Dewhirst

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 > 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/CACwCsY7bk-c7Za-PGUbaEkftA8Xxqd%2BaCUPkaQryW-1kXX0_nQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
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/CA%2Bv0ZYVWO5bFTx%3D6im_dLWwPWz1FoDcFVDN9GXREj%3Dp49f2FcA%40mail.gmail.com 
.

For more options, visit https://groups.google.com/d/optout.


--
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/6f7de077-4082-db30-1cca-168cbce7952c%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.


Re: Django on IIS

2018-12-17 Thread Alex Heyden
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.

On Mon, Dec 17, 2018 at 5:19 PM Larry Martell 
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/CACwCsY7bk-c7Za-PGUbaEkftA8Xxqd%2BaCUPkaQryW-1kXX0_nQ%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CA%2Bv0ZYVWO5bFTx%3D6im_dLWwPWz1FoDcFVDN9GXREj%3Dp49f2FcA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Django on IIS

2018-12-17 Thread Larry Martell
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/CACwCsY7bk-c7Za-PGUbaEkftA8Xxqd%2BaCUPkaQryW-1kXX0_nQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: One Way to Install Django on IIS

2013-04-12 Thread Mark Lybrand
Cool.Please provide feedback so we can make the steps better.  Already have
another friend encounter some issues trying to work our steps with his
config.  The more configs we put through the paces, the better this can be
:)
On Apr 12, 2013 4:18 PM, "Nick D"  wrote:

> Just what I'm going to need when I'm done with development.
>
> Thanks!
>
> On Friday, April 12, 2013 6:02:49 AM UTC-7, Mark Lybrand wrote:
>
>> My buddy and I were working last night on getting Django running on IIS7.
>>  We are not quite done as we are still working out issues surrounding
>> static files.  However, I thought these steps might be useful to others who
>> are struggling to get this working.
>>
>> Any thoughts or corrections welcome and appreciated:
>>
>> http://codesmartinc.com/2013/**04/12/running-django-in-**iis7iis8/
>>
>>
>>
>> --
>> Mark :)
>>
>  --
> 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 http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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 http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: One Way to Install Django on IIS

2013-04-12 Thread Nick D
Just what I'm going to need when I'm done with development.
 
Thanks!

On Friday, April 12, 2013 6:02:49 AM UTC-7, Mark Lybrand wrote:

> My buddy and I were working last night on getting Django running on IIS7. 
>  We are not quite done as we are still working out issues surrounding 
> static files.  However, I thought these steps might be useful to others who 
> are struggling to get this working.
>
> Any thoughts or corrections welcome and appreciated:
>
> http://codesmartinc.com/2013/04/12/running-django-in-iis7iis8/
>
>
>
> -- 
> Mark :) 
>

-- 
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 http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Django on IIS 6

2011-03-25 Thread mofle
I've finally managed to set up Django on IIS 6 using this guide:
http://whelkaholism.blogspot.com/2010/10/django-on-iis.html

My Django project is located at the following url: 
http://server.com/djangoproject/

When trying to access the "http://server.com/djangoproject/admin/"; I
get the "Page not found" error.

It seems like it is trying to match "djangoproject/admin/", instead of
"admin/". How can I fix this?


I tried setting FORCE_SCRIPT_NAME to '/djangoproject', but then the
request url became "http://server.com/djangoproject/djangoproject/
admin/".

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Django on IIS randomly changing LANGUAGE_CODE

2011-01-19 Thread Rodrigo Cea
I hava a Django production site on IIS 6.0.
The LANGUAGE_CODE is set to 'es-cl'
There are forms on the site. Sometimes the site seems to switch to
English, returning validation errors on dates written in dd/mm/
format. The errors themselves are in English (whereas they're normally
in Spanish).
This is random, and we have not been able to reproduce it on our
Development or Test servers.
Ideas?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Running django on IIS

2010-04-21 Thread CrabbyPete
I tried for a while, and finally switched to Apache on Windows. It
works great and easy to set up.

On Apr 21, 6:29 am, Nick  wrote:
> Hiya
>
> I have exactly the same problem as described here.
>
> Did you (or anyone) find a fix or workaround for this?
>
> Cheers!
> Nick.
>
> On Apr 14, 12:24 pm, Paweł Roman  wrote:
>
>
>
> > > I suspect it is trying to import Http but can't.
>
> > > Fire up python (Start -> Python Interactive Shell, or Start -> Run ->
> > > cmd -> type python), and type:
>
> > > import Http
> > > If that doesn't work, you haven't installed it properly. See the
> > > following quote from the Django wiki:
>
> > > "•Go to c:\pyisapie\source\PyISAPIe\Python\ and copy the entire Http
> > > folder to c:\python25\lib\site-packages. Note: the Http folder is case
> > > sensitive. Saving in 'http' (or any other variation) will not work
> > > [SF]. "
>
> > I've copied Http to site-packeges. "import Http" works OK.
>
> > Interesting thing is that running "from Http import *"  fails
> > (AttributeError: 'module' object has no attribute 'Read'), but I guess
> > this has something to do with the fact that Http's __init__.py tries
> > to set __all__ (in other words: import) modules that are not in the
> > filesystem, but somewhere in the pyisapie.dll (?), like the mentioned
> > 'Read'. There is even a comment line that says #From DLL. I don't know
> > how this is supposed to work, i.e. how python can import modules from
> > dll (?), I even included tha path to the DLL in the pytonpath, just in
> > case, but it didnt help.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Running django on IIS

2010-04-21 Thread Nick
Hiya

I have exactly the same problem as described here.

Did you (or anyone) find a fix or workaround for this?

Cheers!
Nick.



On Apr 14, 12:24 pm, Paweł Roman  wrote:
> > I suspect it is trying to import Http but can't.
>
> > Fire up python (Start -> Python Interactive Shell, or Start -> Run ->
> > cmd -> type python), and type:
>
> > import Http
> > If that doesn't work, you haven't installed it properly. See the
> > following quote from the Django wiki:
>
> > "•Go to c:\pyisapie\source\PyISAPIe\Python\ and copy the entire Http
> > folder to c:\python25\lib\site-packages. Note: the Http folder is case
> > sensitive. Saving in 'http' (or any other variation) will not work
> > [SF]. "
>
> I've copied Http to site-packeges. "import Http" works OK.
>
> Interesting thing is that running "from Http import *"  fails
> (AttributeError: 'module' object has no attribute 'Read'), but I guess
> this has something to do with the fact that Http's __init__.py tries
> to set __all__ (in other words: import) modules that are not in the
> filesystem, but somewhere in the pyisapie.dll (?), like the mentioned
> 'Read'. There is even a comment line that says #From DLL. I don't know
> how this is supposed to work, i.e. how python can import modules from
> dll (?), I even included tha path to the DLL in the pytonpath, just in
> case, but it didnt help.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Running django on IIS

2010-04-14 Thread Paweł Roman
> I suspect it is trying to import Http but can't.
>
> Fire up python (Start -> Python Interactive Shell, or Start -> Run ->
> cmd -> type python), and type:
>
> import Http
> If that doesn't work, you haven't installed it properly. See the
> following quote from the Django wiki:
>
> "•Go to c:\pyisapie\source\PyISAPIe\Python\ and copy the entire Http
> folder to c:\python25\lib\site-packages. Note: the Http folder is case
> sensitive. Saving in 'http' (or any other variation) will not work
> [SF]. "
>

I've copied Http to site-packeges. "import Http" works OK.

Interesting thing is that running "from Http import *"  fails
(AttributeError: 'module' object has no attribute 'Read'), but I guess
this has something to do with the fact that Http's __init__.py tries
to set __all__ (in other words: import) modules that are not in the
filesystem, but somewhere in the pyisapie.dll (?), like the mentioned
'Read'. There is even a comment line that says #From DLL. I don't know
how this is supposed to work, i.e. how python can import modules from
dll (?), I even included tha path to the DLL in the pytonpath, just in
case, but it didnt help.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Running django on IIS

2010-04-14 Thread Sam Lai
I suspect it is trying to import Http but can't.

Fire up python (Start -> Python Interactive Shell, or Start -> Run ->
cmd -> type python), and type:

import Http

If that doesn't work, you haven't installed it properly. See the
following quote from the Django wiki:

"•Go to c:\pyisapie\source\PyISAPIe\Python\ and copy the entire Http
folder to c:\python25\lib\site-packages. Note: the Http folder is case
sensitive. Saving in 'http' (or any other variation) will not work
[SF]. "

On 14 April 2010 19:39, Paweł Roman  wrote:
> I'm trying to run django on IIS and SQL Server 2005. I've found this
> nice page with all instructions:
>
> http://code.djangoproject.com/wiki/DjangoOnWindowsWithIISAndSQLServer
>
> I followed all the instructions, installed PyISAPIe, created virtual
> directory, mapped the .py extension to the PyISAPIe.dll. However I got
> stuck at this place:
>
> "In c:\pyisapie\source\PyISAPIe\Python\examples folder is a file
> called Info.py. Copy this to your new virtual directory folder, and
> then try and view http://site/Info.py to test it. It should work. If
> it doesn't, when you find out why, please come back and explain what
> happened and how you fixed it. ;) "
>
> Well, it doesn't work and I wish I knew why. All I get when trying to
> view this file is the following:
>
> ErrorSpecified module cannot
> be found.
>
> I'm using polish version of windows XP SP3, with IIS 5.1, and the
> message in  is in polish, what you see here is my translation.
> Anyway, there's no other information: which module could not be found,
> what, where, why. Nothing. Application log (eventvwr.exe) does not
> show any errors. I'm stuck. Something with permissions? But what, how
> and where? I've even tried without firewall but it didnt help.
>
> I know this is a problem with PyISAPIe not with django, but I write
> here because someone might have had similar problem.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Running django on IIS

2010-04-14 Thread Paweł Roman
I'm trying to run django on IIS and SQL Server 2005. I've found this
nice page with all instructions:

http://code.djangoproject.com/wiki/DjangoOnWindowsWithIISAndSQLServer

I followed all the instructions, installed PyISAPIe, created virtual
directory, mapped the .py extension to the PyISAPIe.dll. However I got
stuck at this place:

"In c:\pyisapie\source\PyISAPIe\Python\examples folder is a file
called Info.py. Copy this to your new virtual directory folder, and
then try and view http://site/Info.py to test it. It should work. If
it doesn't, when you find out why, please come back and explain what
happened and how you fixed it. ;) "

Well, it doesn't work and I wish I knew why. All I get when trying to
view this file is the following:

ErrorSpecified module cannot
be found.

I'm using polish version of windows XP SP3, with IIS 5.1, and the
message in  is in polish, what you see here is my translation.
Anyway, there's no other information: which module could not be found,
what, where, why. Nothing. Application log (eventvwr.exe) does not
show any errors. I'm stuck. Something with permissions? But what, how
and where? I've even tried without firewall but it didnt help.

I know this is a problem with PyISAPIe not with django, but I write
here because someone might have had similar problem.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Are any of you successfully running Django on IIS?

2008-04-25 Thread jmDesktop

Thank.  I have it running, sort of.  It doesn't seem to be using
urls.py, but I can run helloworld.py if I put in the full URL, so it
is importing django items, but not using urls.

On Apr 25, 10:30 am, "Justin Lilly" <[EMAIL PROTECTED]> wrote:
> Yes. I do think its a hack and it very much feels that way when setting it
> up. If I had to do it again.. I'd avoid it at all costs.
>  -justin
>
>
>
>
>
> On Fri, Apr 25, 2008 at 10:01 AM, jmDesktop <[EMAIL PROTECTED]> wrote:
>
> > Do you think at best that running Django or any Python program on IIS
> > is a "hack"?  I don't mean that offensive to anyone, but it may have
> > never been and still not intended for IIS.
>
> > On Apr 24, 1:54 pm, "Justin Lilly" <[EMAIL PROTECTED]> wrote:
> > > I finally got it working. You can check out the results athttp://
> > niethestate.com/trafficstops/It was painful, though. Use apache if
> > > you can. I've talked my corp. into buying some linux servers at server
> > beach
> > > so hopefully it will be much easier.
> > >  -justin
>
> > > On Thu, Apr 24, 2008 at 1:35 PM, jmDesktop <[EMAIL PROTECTED]>
> > wrote:
>
> > > > I have a requiremnet to use Django on IIS.  I know there is a wiki
> > > > page on Django about it, but what I'm after is if anyone is actually
> > > > using it daily in production.  Just hoping to see how it's going.  If
> > > > not I have to persuade to use Apache on the Windows box.  Thanks.
>
> > > --
> > > Justin Lilly
> > > Web Developer/Designerhttp://justinlilly.com
>
> --
> Justin Lilly
> Web Developer/Designerhttp://justinlilly.com- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Are any of you successfully running Django on IIS?

2008-04-25 Thread Justin Lilly
Yes. I do think its a hack and it very much feels that way when setting it
up. If I had to do it again.. I'd avoid it at all costs.
 -justin

On Fri, Apr 25, 2008 at 10:01 AM, jmDesktop <[EMAIL PROTECTED]> wrote:

>
> Do you think at best that running Django or any Python program on IIS
> is a "hack"?  I don't mean that offensive to anyone, but it may have
> never been and still not intended for IIS.
>
> On Apr 24, 1:54 pm, "Justin Lilly" <[EMAIL PROTECTED]> wrote:
> > I finally got it working. You can check out the results athttp://
> niethestate.com/trafficstops/It was painful, though. Use apache if
> > you can. I've talked my corp. into buying some linux servers at server
> beach
> > so hopefully it will be much easier.
> >  -justin
> >
> > On Thu, Apr 24, 2008 at 1:35 PM, jmDesktop <[EMAIL PROTECTED]>
> wrote:
> >
> > > I have a requiremnet to use Django on IIS.  I know there is a wiki
> > > page on Django about it, but what I'm after is if anyone is actually
> > > using it daily in production.  Just hoping to see how it's going.  If
> > > not I have to persuade to use Apache on the Windows box.  Thanks.
> >
> > --
> > Justin Lilly
> > Web Developer/Designerhttp://justinlilly.com
> >
>


-- 
Justin Lilly
Web Developer/Designer
http://justinlilly.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Are any of you successfully running Django on IIS?

2008-04-25 Thread jmDesktop

Do you think at best that running Django or any Python program on IIS
is a "hack"?  I don't mean that offensive to anyone, but it may have
never been and still not intended for IIS.

On Apr 24, 1:54 pm, "Justin Lilly" <[EMAIL PROTECTED]> wrote:
> I finally got it working. You can check out the results 
> athttp://niethestate.com/trafficstops/It was painful, though. Use apache if
> you can. I've talked my corp. into buying some linux servers at server beach
> so hopefully it will be much easier.
>  -justin
>
> On Thu, Apr 24, 2008 at 1:35 PM, jmDesktop <[EMAIL PROTECTED]> wrote:
>
> > I have a requiremnet to use Django on IIS.  I know there is a wiki
> > page on Django about it, but what I'm after is if anyone is actually
> > using it daily in production.  Just hoping to see how it's going.  If
> > not I have to persuade to use Apache on the Windows box.  Thanks.
>
> --
> Justin Lilly
> Web Developer/Designerhttp://justinlilly.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Are any of you successfully running Django on IIS?

2008-04-24 Thread 头太晕
http://code.google.com/p/pyisapi-scgi/

On Fri, Apr 25, 2008 at 1:35 AM, jmDesktop <[EMAIL PROTECTED]> wrote:

>
> I have a requiremnet to use Django on IIS.  I know there is a wiki
> page on Django about it, but what I'm after is if anyone is actually
> using it daily in production.  Just hoping to see how it's going.  If
> not I have to persuade to use Apache on the Windows box.  Thanks.
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Are any of you successfully running Django on IIS?

2008-04-24 Thread Justin Lilly
I finally got it working. You can check out the results at
http://niethestate.com/trafficstops/ It was painful, though. Use apache if
you can. I've talked my corp. into buying some linux servers at server beach
so hopefully it will be much easier.
 -justin

On Thu, Apr 24, 2008 at 1:35 PM, jmDesktop <[EMAIL PROTECTED]> wrote:

>
> I have a requiremnet to use Django on IIS.  I know there is a wiki
> page on Django about it, but what I'm after is if anyone is actually
> using it daily in production.  Just hoping to see how it's going.  If
> not I have to persuade to use Apache on the Windows box.  Thanks.
> >
>


-- 
Justin Lilly
Web Developer/Designer
http://justinlilly.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Are any of you successfully running Django on IIS?

2008-04-24 Thread jmDesktop

I have a requiremnet to use Django on IIS.  I know there is a wiki
page on Django about it, but what I'm after is if anyone is actually
using it daily in production.  Just hoping to see how it's going.  If
not I have to persuade to use Apache on the Windows box.  Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: django on iis

2007-11-29 Thread 头太晕
Hi, i create a english version
.http://code.google.com/p/pyisapi-scgi/downloads/detail?name=pyISAPI_SCGI_0.0.1_En.zip
and http://code.google.com/p/pyisapi-scgi/wiki/howtoen.
but I cant't say expressly.
Please help me.
Thank you!

2007/11/30, Jeremy Dunck <[EMAIL PROTECTED]>:
>
> Nice.  Any chance of getting this page translated to English?
> http://code.google.com/p/pyisapi-scgi/wiki/howtousepyisapiscgi
>
> Unfortunately, I can't help.  :(
>
> On Nov 29, 2007 10:10 AM, 头太晕 <[EMAIL PROTECTED]> wrote:
> >
> > pyISAPI_SCGI is a ISAPI Extension for SCGI. It can run django on iis.
> >
> > http://code.google.com/p/pyisapi-scgi/
> > >
> >
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: django on iis

2007-11-29 Thread Jeremy Dunck
Nice.  Any chance of getting this page translated to English?
http://code.google.com/p/pyisapi-scgi/wiki/howtousepyisapiscgi

Unfortunately, I can't help.  :(

On Nov 29, 2007 10:10 AM, 头太晕 <[EMAIL PROTECTED]> wrote:
>
> pyISAPI_SCGI is a ISAPI Extension for SCGI. It can run django on iis.
>
> http://code.google.com/p/pyisapi-scgi/
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



django on iis

2007-11-29 Thread 头太晕

pyISAPI_SCGI is a ISAPI Extension for SCGI. It can run django on iis.

http://code.google.com/p/pyisapi-scgi/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---