Skip to content

Instantly share code, notes, and snippets.


Jan Hendrik Berlin smjaberl

View GitHub Profile
smjaberl / gist:771211f5bd8114b936807e25aa0a7177
Last active March 30, 2020 00:38
Django as Protable App
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- from 2019-12-22.

  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 file should exists at django/