[Expo-tech] Django status update

Wookey wookey at wookware.org
Wed Jun 26 04:25:22 BST 2019


On 2019-06-25 19:59 +0100, Sam Wenham wrote:
> 
> > Now python databaseReset.py reset doesn't give any errors, but it also
> > seems to not actually be doing anything. Debugging with pdb shows it
> > never returning from django.setup(). Any bright ideas what do to about this?
> Django seems to hang and has to be killed.

OK. As you pointed out, python-django was still 1.10. Not sure how that happened.

Putting in the 1.7.11 I carefully built for the purpose, (along with
python-django-registration python-django-imagekit
python-django-tinymce) get us to a much better place.

Now the website doens't just hang with wgsi enabled and databasereset runs.

However it falls over after a while with:
Loading personexpeditions
Traceback (most recent call last):
  File "databaseReset.py", line 206, in <module>
    reset()
  File "databaseReset.py", line 91, in reset
    import_people()
  File "databaseReset.py", line 50, in import_people
    parsers.people.LoadPersonsExpos()
  File "/home/expo/repositories/hg/troggle/parsers/people.py", line 72, in LoadPersonsExpos
    rawlastname = personline[header["Lastname"]].strip()
KeyError: 'Lastname'

Which seems to be something to do with Sam's last commit on people/name processing.

There is a pending commit on expoweb/folk/folk.csv, but there is no
'Lastname' column either before or after that commit.  (The 'Lastname'
column is actually the 'sort' column strictly speaking)

Looks like the folk.csv file is out of sync with troggle. Do you have
a newer version Sam?

Titling the 2nd column 'Lastname' means we get further. And it's defo bedtime so I'll see where it's got to in the morning. 

(That script has a got lot less noisy Sam, well done :-)

Wookey
-- 
Principal hats:  Linaro, Debian, Wookware, ARM
http://wookware.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.wookware.org/pipermail/expo-tech/attachments/20190626/201e2045/attachment.sig>


More information about the Expo-tech mailing list