[Expo-tech] Django status update
Wookey
wookey at wookware.org
Tue Jun 25 03:41:35 BST 2019
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.
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)
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?
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
--
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/20190625/25389404/attachment.sig>
More information about the Expo-tech
mailing list