Skip to content

Instantly share code, notes, and snippets.

Avatar

Jan Hendrik Berlin smjaberl

View GitHub Profile
View gist:771211f5bd8114b936807e25aa0a7177

Django as Protable App for Windows 10

In some cases it is necessary to devliver a django project to a person who doesn't know much about computers. In this case it is nice to have a python eviroment ready to use inclusive the code, so that you just have to sent a zip file. Below I deiscribe how to setup a WinPy enviroment and adding a django project. With a one line batchfile it should be very easy to start the django testserver.

  1. Download a minmal WinPython environment. This should be ~ 23 MB. I took the Winpython64-3.7.6.0dot.exe from 2019-12-22. https://sourceforge.net/projects/winpython/files/WinPython_3.7/3.7.6.0/

  2. Create a directory namened winpy and extract/install the WinPython enviroment to this folder. Now there should be WPy64-3760 directory in "winpy"

  3. Create a directory namened "django" and copy your code into this folder. The manage.py file should exists at django/manage.py.