[Expo-tech] Expo website: troggle updating
Philip Sargent [Gmail]
philip.sargent at gmail.com
Sat Feb 27 01:01:46 GMT 2021
Hi,
OK I am about to re-engage with the Expo website updating. The job is just the Django version <http://expo.survex.com/handbook/troggle/trogdjango.html> :
o The server is on Debian Buster (10.8) and I presume Wookey is not planning on upgrading that before next year but no hurry.
o We are using python 3.7.3 which is in date and will have security updates until mid-2023
o The troggle code is on Django 1.11 which is out of date and no longer getting security updates. The initial need is to migrate to Django 2.2 LTS which will be in-date until Spring 2022. This is compatible with python 3.7.
I have just finished bringing the CU Yachting Club website up from python2.7 & Django 1.5 to python 3.5 & Django 2.2, which is a much larger job than the Expo website. (It is stuck at python 3.5 because of old plugins: PayPal, Raven link, captchas, Mailman link, Trac link and image management.)
So I should do the Expo Django update while this is all fresh in my mind. I will need to remove the registration plugin and move to the Django in-built user system which is now more than adequate for our needs. I am also now much more adept at writing test suites for Django so I will do more automated testing.
The CUYC python was written by a professional Django developer (in 2009) and so uses a much wider range of programming features than we use. I have learned a lot. (My wallpaper is peeling from all the swearing.)
I remain firm in my belief that we should migrate away from Django and replace as much as possible with plain python. Django is just too big for amateurs now. This rewriting can be done a chunk at a time: logbooks, then survex, drawings, QMs and so on..
We can do import + static publish . No need for multi-user database now that importing everything takes 2 minutes.
Philip
CUYC:
14,674 lines of non-comment, non-empty python.
That is > 2x the size of the CUCC Expo django codebase
and 15,658 lines of non-empty HTML & scripts in the /templates/ too
That is 6x as big as CUCC Expo - but mostly static.
Unlike CUCC Expo, the CUYC system <https://www.cuyc.org.uk/training/> is used every week to construct ~35 sailing trips a year and to enrol students in practical classes and theory courses – taking payment via PayPal and authenticating junior members of the university via the Raven plugin. So it is vital to the everyday functioning of the club. It very significantly reduces the workload on organisers. It will be staying on Django indefinitely and is hosted by SRCF. The club turnover is more than £50k a year.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wookware.org/pipermail/expo-tech/attachments/20210227/e41be84e/attachment.htm>
More information about the Expo-tech
mailing list