Skip to content
Advertisement

Tag: misaka

IntegrityError NOT NULL constraint failed: – in validating form missing user id (foreing key of anothermodel)

Previous title: Unable to import ‘misaka’ – Django I am following a tutorial about how to build a social network. I run into this error: IntegrityError at /posts/new/ NOT NULL constraint failed: posts_post.user_id Complete traceback (please note the lines in bold): The lines in bold are pointing to these two pieces of code: 1: In my_projectpostsviews.py in form_valid: 2: In

Advertisement