DEV Community

Discussion on: How to track number of hits/views for particular objects in Django | Django Packages Series #2

Collapse
 
gamino97 profile image
gamino97

For those that have the error "(errno: 150 "Foreign key constraint is incorrectly formed")')", I've found an improvise solution, simply go to the installation folder of django-hitcount named "hitcount", go to the migrations folder, and erase everything except the init.py, run python manage.py makemigrations and python manage.py migrate and it's solved, sorry my bad English