What is the best solution to deploy Django on a Windows server?

4,576 views
Skip to first unread message

Augusto Destrero

unread,
Oct 11, 2013, 11:35:06 AM10/11/13
to django...@googlegroups.com
A client of mine want to keep its existing Windows Server infrastructure, so I'm forced to deploy my Django based web application on Windows 2003/2007.

The first question is:

is Django production ready on Windows platform?

The second is:

to your knowledge, what is the best way to deploy Django on a Windows server? Apache+mod_wsgi? IIS+Helicon Zoo (http://www.helicontech.com/articles/running-django-on-windows-with-performance-tests/)?

I always deployed Django on a Linux environment, so I'm a little afraid on this new project? Someone here successfully deployed Django on a windows server?

Thank you very much for your help!

Arnold Krille

unread,
Oct 11, 2013, 3:50:05 PM10/11/13
to django...@googlegroups.com
On Fri, 11 Oct 2013 08:35:06 -0700 (PDT) Augusto Destrero
<a.des...@gmail.com> wrote:
> A client of mine want to keep its existing Windows Server
> infrastructure, so I'm forced to deploy my Django based web
> application on Windows 2003/2007.
>
> The first question is:
>
> is Django production ready on Windows platform?
>
> The second is:
>
> to your knowledge, what is the best way to deploy Django on a Windows
> server? Apache+mod_wsgi? IIS+Helicon Zoo (
> http://www.helicontech.com/articles/running-django-on-windows-with-performance-tests/
> )?

Create a virtual machine, either with microsofts virtualization or with
virtualbox. Install linux in it, deploy your app as you are used to
do.

Or even better, replace the clients win-only machine by a linux-server
running a virtual machine for the django-stuff and another virtual
machine for the clients windows-stuff.

Have fun,

Arnold
signature.asc

Javier Guerra Giraldez

unread,
Oct 11, 2013, 4:54:38 PM10/11/13
to django...@googlegroups.com
On Fri, Oct 11, 2013 at 2:50 PM, Arnold Krille <arn...@arnoldarts.de> wrote:
> Create a virtual machine, either with microsofts virtualization or with
> virtualbox. Install linux in it, deploy your app as you are used to
> do.


while I agree that using Linux is the best solution, Django _does_ run
on windows without any problem.

just don't mess with IIS, Apache+mod_wsgi is a perfectly good
platform. (personally, I prefer nginx+uWSGI, but that would need a lot
more work to run on windows)


--
Javier

Augusto Destrero

unread,
Oct 22, 2013, 12:13:13 PM10/22/13
to django...@googlegroups.com
The virtual machine solution already came to my mind, but unfortunately it's not practical in this case. I investigated a bit the available solutions to have Django running on Windows and I came up with a CherryPy based deployment of Django.
I wrote a blog post on my experience with this approach:


Please reply here or in the blog if you have comments (I'm particularly interested in possible problems arising from my approach).

Thank you very much for your help!

DJ-Tom

unread,
Oct 30, 2013, 5:53:48 AM10/30/13
to django...@googlegroups.com


Am Freitag, 11. Oktober 2013 22:54:38 UTC+2 schrieb Javier Guerra:
 
just don't mess with IIS, Apache+mod_wsgi is a perfectly good
platform. (personally, I prefer nginx+uWSGI, but that would need a lot
more work to run on windows)


Can only confirm that...

I'm using the following setup
  Windows 2008 Server, Apache / mod_wsgi / virtualenv
without problems.

Guddu

unread,
Nov 1, 2013, 4:07:57 PM11/1/13
to django...@googlegroups.com
I have Deployed Django with Apache 2.2 + mod_wsgi on a Windows Server 2003 Production environment (No Virtualization) and it works like a Charm.
Reply all
Reply to author
Forward
0 new messages