Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- C:\Users\Rares\Documents\Social Network>python app.py
- Traceback (most recent call last):
- File "app.py", line 180, in <module>
- admin=True
- File "C:\Users\Rares\Documents\Social Network\models.py", line 56, in create_u
- ser
- password=generate_password_hash(password),
- File "C:\Python34\lib\site-packages\flask_bcrypt-0.6.2-py3.4.egg\flask_bcrypt.
- py", line 47, in generate_password_hash
- return Bcrypt().generate_password_hash(password, rounds)
- File "C:\Python34\lib\site-packages\flask_bcrypt-0.6.2-py3.4.egg\flask_bcrypt.
- py", line 159, in generate_password_hash
- return bcrypt.hashpw(password, bcrypt.gensalt(rounds))
- File "C:\Python34\lib\site-packages\bcrypt\__init__.py", line 139, in hashpw
- raise TypeError("Unicode-objects must be encoded before hashing")
- TypeError: Unicode-objects must be encoded before hashing
- C:\Users\Rares\Documents\Social Network>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement