[Expo-tech] django 1.7 now running on python 3.8

Philip Sargent (Gmail) philip.sargent at gmail.com
Tue May 19 12:48:40 BST 2020


OK I haven't got troggle (python3) working yet,
but I have definitely managed to install django 1.7 on python 3.8.
So this does look like a promising quick route to get the expo server onto a later version of debian - if that is what is needed.

There is just one patch needed:
https://github.com/django/django/commit/b07aa52e8a8e4c7fdc7265f75ce2e7992e657ae9
to run it on python 3.6 or later
explained here
http://thefourtheye.in/2015/02/15/python-35-and-django-17s-htmlparseerror/ 

and the minimal test passes and the server is running on port 8000.


I'm posting this now because the hay-fever is beginning to kick in, and I might not be up to anything more
for quite a while..

    $ python --version
    Python 3.8.2
     (p3d2) $ python manage.py runserver -v 3
    Performing system checks...

    System check identified no issues (0 silenced).
    May 19, 2020 - 11:41:24
    Django version 1.7, using settings 'mysite.settings'
    Starting development server at http://127.0.0.1:8000/
    Quit the server with CONTROL-C.

as the astute will have noticed, I am running this in a virtual environment.
It was created by
    python3 -m venv p3d2

So that I could edit this version of django1.7 django/utils/html_parser.py
without touching my main system-installed django1.7.
[And it is on Ubuntu 20.04 as installed on WSL1 in Win10.]




More information about the Expo-tech mailing list