Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- from alerts.models import *
- user = Account()
- user.username = 'testuser'
- user.password = 'testpass'
- user.email = 'robertgenito@gmail.com'
- session = Session()
- session.add(user)
- session.commit()
- print 'committed that shiz :D'
- # sqlalchemy.exc.OperationalError: (OperationalError) (1044, "Access denied for user ''@'localhost' to database 'root:@127.0.0.1:3306/test'") None None
Add Comment
Please, Sign In to add comment