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.
-
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/
-
Create a directory namened
winpy
and extract/install the WinPython enviroment to this folder. Now there should beWPy64-3760
directory in "winpy" -
Create a directory namened "django" and copy your code into this folder. The
manage.py
file should exists atdjango/manage.py
.