Django — dictionary update sequence element #0 has length 1; 2 is required

This error appears if you accidentally pass a string to the url function.

I was trying to name my url and forgot it’s a kwarg.

url(r'^$', 'foo', 'this_is_invalid'),

5 Comments

  1. jeff says:

    So clear, so simple. As a python newbie this post was incredibly helpful.

  2. pstch says:

    oh shit you are so great

  3. Dombas says:

    Thank you very much.

  4. bob says:

    you are awesome thanks!

Leave a reply to Dombas Cancel reply