When we run $ python manage.py runserver --settings=project.settings.local there are 4 different possible combinations:
$ python manage.py runserver --settings=project.settings.local
I hope this helps someone someday. I had this similar problems and it took a while before i fixed it. Check your tags. If an href attributes points to a template/link that don't exist. You might encounter such.
href