11

We'd like to create a Django Intranet application for mass market. We only need to support Windows users, and it needs to be very easy for a Windows admin (or "technical user") to deploy (baring in mind that most Windows admins/users have little experience with Python, etc).

Is Django + py2exe the answer? Do we need something extra, or something else?

Nick Bolton
  • 38,276
  • 70
  • 174
  • 242

3 Answers3

13

Yes, you require:

  • Python 2.5.2
  • Django (svn version at least 2008-06-05)
  • CherryPy (web server)
  • Py2Exe

Tutorial

Radek
  • 3,913
  • 3
  • 42
  • 37
  • Related question: http://stackoverflow.com/questions/1317899/django-projects-as-desktop-applications-how-to – Radek Nov 01 '09 at 12:44
  • I think this is slightly different to the related question, since it involves needing a web server. But thanks for the link. – Nick Bolton Nov 01 '09 at 12:47
  • 1
    Ok, Nick then checkout this: http://www.appcelerator.com/products/titanium-desktop/ – Radek Nov 01 '09 at 12:49
  • I was looking at something similar using PyInstaller but it only supports up to Python 3.6 - does Py2Exe have a similar limitation/issue? – Bendy Jun 23 '17 at 14:24
4

PyInstaller has builtin support for Django applications. It will do most of the magic by itself.

Zenadix
  • 15,291
  • 4
  • 26
  • 41
Giovanni Bajo
  • 1,337
  • 9
  • 15
0

I recently did this with Django 1.5 and python 2.7. I didn't embed a webserver, because I really just wanted the ORM.

Here are the options I used in setup.py:

options = {
 "py2exe":{
           "includes": ["Cookie","htmlentitydefs"],
           "packages":["django","sqlite3","email"],
           }
 }
AgDude
  • 1,167
  • 1
  • 10
  • 27