Add some load-time validation of PGAUTH_KEY in the django sample
authorMagnus Hagander <magnus@hagander.net>
Mon, 28 Aug 2023 18:46:32 +0000 (20:46 +0200)
committerMagnus Hagander <magnus@hagander.net>
Mon, 28 Aug 2023 18:49:33 +0000 (20:49 +0200)
commit071aad3e6c117203810cf2f90d79044bd5fd70ae
tree5d8317c3e0d83e444e6fcf55664a51b54c753970
parent0536b91cb2ca67a3882bd5274cb57e5b091d2658
Add some load-time validation of PGAUTH_KEY in the django sample

Will result in a nicer error when the key is wrong, and in particular a
startup error instead of a runtime error.

Reviewed-by: Célestin Matte
tools/communityauth/sample/django/auth.py