2015年7月9日 星期四

Flask-Secutiry default provides URL

  • /login (endpoint: security.login, view: security/login_user.html)
  • /logout (endpoint: security.logout)
  • /register (endpoint: security.register, view: security/register_user.html)
  • /reset (endpoint: security.forgot_password, view: security/forgot_password.html)
  • /change (endpoint: security.change_password, view: security/change_password.html)
  • /confirm (endpoint: security.send_confirmation, view: security/send_confirmation.html



References :
Configuration — Flask-Security 1.7.4 documentation

Flask-Admin change root default url

You can change the root url from /admin to /myadmin with the following:

from flask.ext.admin import Admin
admin = Admin(app, url='/myadmin')




References :
flask_admin.base — flask-admin 1.2.1-dev documentation

2015年7月4日 星期六