Django Help: Resolving NOT NULL constraint failed error with CreateView
问题 I am new to stackoverflow, python and Django, have a question on the '(NOT NULL constraint failed: sixerrapp_gig.user_id)' error I am getting when i click submit on the form. Pretty sure it is because I have not assigned a user_id value from what I have found on StackOverflow thus far, but I am not sure how to do it using the django CreateView. The project exercise is based on a clone of fiverr.com. Please see code below: in models.py: from django.db import models from django.contrib.auth