In Django, if you get the error:
ValueError at dictionary update sequence element #0 has length 1; 2 is required
Check your urls.py to see if you forgot to write "name=" when naming your url or path functions in urlpatterns.
If you write something like:
path('', home_page, 'homepage')
That won't work because the path URL function parameters are the following:
path(route, view, kwargs=None, name=None)
Notice that the third position is kwargs. So, if you name your urls, make sure you write name=
Helpful links:
https://stackoverflow.com/questions/1...
https://docs.djangoproject.com/en/2.2...