[Expo-tech] Django & nerd meet today

Philip Sargent (Gmail) philip.sargent at gmail.com
Wed Jun 26 00:35:21 BST 2019


Short notice nerd meet on Wednesday evening at 27 Greville Road.
>From 19:00 onwards.

Mostly Sam and Wookey trying to fix Django we expect.

-----Original Message-----
From: Expo-tech [mailto:expo-tech-bounces at lists.wookware.org] On Behalf Of Sam Wenham
Sent: 25 June 2019 20:00
To: expo-tech at lists.wookware.org
Subject: Re: [Expo-tech] Django status update



On 25/06/2019 03:41, Wookey wrote:
> On 2019-06-23 02:48 +0100, Wookey wrote:
>> On 2019-06-23 02:29 +0100, Wookey wrote:
>>
>>>
>>> Not clear whether it's worth persuing this (fixing issue, or 
>>> building without tests and hoping this one isn't important), or just 
>>> pip-instaling 1.7.11.
>>
>> OK. nobbling the tests gets me a package that installs, and lets me 
>> run python manage.py runserver
>>  
>> That'll do for now. I can do the wsgi thing now
> 
> Running pythondatabase reset fails due to missing 'all.svx', which of 
> course doesn't exist any more. I've put that into settings.py as it 
> shouldn't be hard-coded.

Probably better this way I had symlinked it on the old server to get round this.
> Then fixed the script up for Django 1.7 django.setup (suggesting that 
> the troggle copy is quite out of date - I'm sure I've fixed that 
> before)
What/where is this? I have never seen it and we have been on 1.7 for ages. The repo needed an hg update. 760 is the top of the repo I have and I'm pretty sure that is top.

> 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.

> 
> I've now added the wsgi config.
> WSGIPythonPath /home/expo/troggle
> <VirtualHost *:80> 
>         ServerName expo.survex.com
> ...
> WSGIScriptAlias / /home/expo/troggle/wsgi.py                                              <Directory /home/expo/troggle>
>         <Files wsgi.py>
>                 Require all granted
>         </Files>
> </Directory>
> ...
> 
> And the apache error log says it's started up OK:
> [Tue Jun 25 03:35:07.364042 2019] [wsgi:info] [pid 25779:tid 
> 139818130454272] \[client 90.217.191.115:56918] mod_wsgi (pid=25779, 
> process='', application='ex\
> po.survex.com|'): Loading WSGI script '/home/expo/troggle/wsgi.py'.
> 
> But nothing is being served and nothing in the access file.
> 
> All a bit dull.  
> 
> Bedtime now. I'll be late to pub (after 10) tomorrow.
> 
> Wookey
> 
> 
> _______________________________________________
> Expo-tech mailing list
> Expo-tech at lists.wookware.org
> https://lists.wookware.org/cgi-bin/mailman/listinfo/expo-tech
> 





More information about the Expo-tech mailing list