codedaddies_list icon indicating copy to clipboard operation
codedaddies_list copied to clipboard

IntegrityError

Open bhagyasreedas opened this issue 5 years ago • 4 comments

IntegrityError at /new_search NOT NULL constraint failed: my_app_search.search I wrote the code exactly what u have said but its showing this error.

bhagyasreedas avatar May 18 '20 18:05 bhagyasreedas

have you tried removing {% staticfiles %} from the html file?

akshitkishore avatar May 20 '20 23:05 akshitkishore

try removing the {% staticfiles %} Only add the {% load static %}

Ajith1202 avatar May 25 '20 05:05 Ajith1202

Still, the error is same.

shreyashsrivastava avatar Jun 23 '20 12:06 shreyashsrivastava

Trying re-writing the code again, but without copy and paste, encountered same issue but went away when I wrote the whole code again. But remove the django block

{% staticfiles %}

and then only perform {% load static %} on the base.html file, that is if there is any

oyedejioyewole avatar Aug 09 '20 19:08 oyedejioyewole