Hi,
Even though PYTHONANYWHERE_DOMAIN is defined in bash console, or python console and environment, it is not defined in an ssh session.
I am relying on that to detect if my app is running in production or in dev/debug.
I have inserted that snippet in .bashrc
if [ -n "$SSH_CLIENT" ] ; then export PYTHONANYWHERE_DOMAIN="eu.pythonanywhere.com" fi
Is this good ?
Is there a better way to detect if I am running the app on pythonanywhere ?