If you’re getting an error like this:
... in reverse_dict
If your urls.py file contains a reverse() call, that is the reason. You’re calling reverse before all the urls are loaded and everything is ready. You need to use reverse_lazy() instead.:
Change the reverse() call into a reverse_lazy() call and the problem will go away!