Creating a Django User
rdegges at Randalls-MacBook-Pro in ~/Desktop/omgcrypto
(omgcrypto) ○ python manage.py shell
Python 2.7.6 (default, Feb 3 2014, 10:00:57)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.2.79)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from django.contrib.auth.models import User
>>> u = User.objects.create_user('rdegges', '
[email protected]', 'python<3')
>>> u.password
u'pbkdf2_sha256$12000$TpbGqZKgAx8J$tDIEbKd+lWDJW9q/xDUOlSunzu7ZNHiV6Um11ZG39ck
='
>>>