> notepad cmder\config\aliases
2015年7月30日 星期四
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:
References :
flask_admin.base — flask-admin 1.2.1-dev documentation
from flask.ext.admin import Admin
admin = Admin(app, url='/myadmin')
References :
flask_admin.base — flask-admin 1.2.1-dev documentation
2015年7月8日 星期三
2015年7月7日 星期二
RuntimeError: application not registered on db instance and no application bound to current context
with app.app_context(): db.create_all()
References :
python - When scattering Flask Models, RuntimeError: 'application not registered on db' was raised - Stack Overflow
2015年7月4日 星期六
xen create image
$ dd if=/dev/zero of=XenGuest1.img bs=1024k seek=6144 count=0
$ mkfs -t ext3 XenGuest1.img
References :
Building a Xen Virtual Guest Filesystem on a Disk Image (Cloning Host System) - Virtuatopia
訂閱:
文章 (Atom)