0.基本环境说明: a. Ubuntu 14.04 64bit b. python 2.7.6 c. django 1.8 d. django-registration e. django-widget-tweaks 1.install mysql(5.0+) a. sudo apt-get install mysql-server b. sudo apt-get install mysql-client c. sudo apt-get install libmysqlclient-dev d.…
使用示例1.创建用户>>> from django.contrib.auth.models import User>>> user = User.objects.create_user('john', 'lennon@thebeatles.com', 'johnpassword')# At this point, user is a User object that has already been saved# to the database. You can con…