codedaddies_list
codedaddies_list copied to clipboard
IntegrityError
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.
have you tried removing {% staticfiles %} from the html file?
try removing the {% staticfiles %} Only add the {% load static %}
Still, the error is same.
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