Python-dotenv to import the application singapore mobile number list configuration from a .env file . The twilio python helper library for working with twilio apis. Set application settings to send verification emails with twilio verify, the flask app needs to authenticate you with your twilio account credentials. The app will also need to know the “service sid” assigned to the verify service you created above.

The safest way to set these configuration values is to assign environment variables to them. The most convenient way to manage your environment variables in a flask application is to use an .env file . Create a new file named .env (note the leading dot) in the root directory of your project and enter the following contents.