Open mpuckett159 opened 4 years ago
I dig this!! I think it would be helpful to have it as a separate command, since some of these checks could be time consuming and we may not want it to run on every startup. But definitely a more thorough validation check could really help in getting an instance going.
Description
This is more of a stylistic preference I think, and just kind of a "maybe this is a good idea" thought I guess, feel free to reject or amend it. I was thinking it might be good to include some validations in the env.py file similar to the castings we're doing. This way the admin can see immediately if there are issues with the .env file settings.
Verify various configuration values in the .env file including:
send_message()
function to the env loading, verify existence and right to sendsend_message()
function to the env loading, verify existence and right to send@
at the beginning of the username, maybe just warn and strip instead of fail#
, maybe just warn and add the#
if it doesn't exist