Create a new application in your Duo Security account. Get the keys and API hostname
Edit the keys.yml file with your credentials (or copy and use -c your-keys-file.yml)
Get the Duo Security Javascript file and put it in static/: curl -L -o static/Duo-Web-v2.min.js https://raw.githubusercontent.com/duosecurity/duo_python/master/js/Duo-Web-v2.min.js