Add preview view and template, add flask-login to requirements.txt