Hi, This error message one gets in the following way:
>>> dict('a') ValueError: dictionary update sequence element #0 has length 1; 2 is required I suspect that the second argument of your url is a keyword argument rather than a positional one. In this case you should write: {% 'path.to.some_view' arg1=v1 arg2=v2 %} checkout https://docs.djangoproject.com/en/dev/ref/templates/builtins/ The url tag calls reverse() which has to be called with: reverse(name, args=list, kwargs=dictionary) I got this error a few times when url was trying to make the kwargs dictionary. Best regards, Marcin On 14:40 Fri 07 Jun , Rene Zelaya wrote: > Hi, > > I am getting the following error when the server tries to load one of my > templates and I am not sure what the problem is: > > dictionary update sequence element #0 has length 1; 2 is required > > > The error occurs at the following line in my template: > > <form name="create" action="{% url 'versions:create' geneset.user > geneset.slug %}" method="post"> > > However, I thought I was already passing it both of those arguments > (geneset.user and geneset.slug). Does that have anything to do with it? I > also recently installed the Django tastypie API - Could that be causing the > problem at all? > > Many thanks! > > Rene > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.