Is model is woring attrs

raise dj_exc_value.with_traceback(traceback) from exc_value File "C:\Users\97326\AppData\Roaming\Python\Python310\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\97326\AppData\Roaming\Python\Python310\site-packages\django\db\backends\sqlite3\base.py", line 416, in execute return Database.Cursor.execute(self, query, params) django.db.utils.IntegrityError: NOT NULL constraint failed: new__Movie_movie.movie_download_file

class movie(models.Model): movie_name=models.CharField(max_length=300) movie_descrition=models.TextField() movie_catagory_title=models.CharField(max_length=100,choices=catagory_title,default=0) movie_type=models.CharField(max_length=103, choices=catagory,default=0) movie_select=models.CharField(max_length=103, choices=topt,default=0,blank=True) movie_upload_time=models.DateTimeField(auto_now_add=True) movie_title_image=models.ImageField(upload_to='movie/movieTitle',blank=True) movie_file=models.URLField(max_length=3000,blank=True,default=None) movie_download_file=models.URLField(max_length=3000,blank=True,default=None) def __str__(self): return self.movie_name

Back to Top