[Expo-tech] Django status update

Sam Wenham sam at wenhams.co.uk
Tue Jun 25 19:59:41 BST 2019



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
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.wookware.org/pipermail/expo-tech/attachments/20190625/1a92f576/attachment.sig>


More information about the Expo-tech mailing list