works, thanks a lot

Il giorno giovedì 9 maggio 2013 16:37:11 UTC+2, ejb ha scritto:
>
> Hey kl4us,
>
> I think the problem is that you need to specify the URL name as a string, 
> like: {% url 'post' slug=post.slug %}
>
> https://docs.djangoproject.com/en/dev/topics/http/urls/#naming-url-patterns
>
> Elliot
>
>
> On Thu, May 9, 2013 at 10:29 AM, kl4us <antoni...@gmail.com 
> <javascript:>>wrote:
>
>> I have this code http://pastebin.com/xTJTmZws
>> with django 1.4.3 on OSX works fine, on ubuntu with django 1.5.1 i have 
>> error "coercing to Unicode: need string or buffer, Post found" at line 
>> "{% url post slug=post.slug %}" of template post_list.html.
>>
>> Why and how can i adjust this?
>>
>> -- 
>> 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...@googlegroups.com <javascript:>.
>> To post to this group, send email to django...@googlegroups.com<javascript:>
>> .
>> 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.


Reply via email to