Re: like query django

2016-01-23 Thread Xristos Xristoou
i have 1.8 version Τη Τρίτη, 19 Ιανουαρίου 2016 - 5:35:09 μ.μ. UTC+2, ο χρήστης Xristos Xristoou έγραψε: > > hello, > > > i want to create a query for likes in my post details > > my html tags > > {{movies.likes}} peaple liked this article > Like > > > my urls > > > url(r'^view/(?P[^\.]+)/$', vie

Re: like query django

2016-01-23 Thread James Schneider
On Jan 22, 2016 1:08 AM, "Xristos Xristoou" wrote: > > look my version django cant not be use url 'like_post' because show me errow only 1.5 version django can use that > I have no idea what you are trying to say here, sorry. Are you using Django 1.5? If so, you should upgrade immediately. With

Re: like query django

2016-01-22 Thread Xristos Xristoou
look my version django cant not be use url 'like_post' because show me errow only 1.5 version django can use that Τη Τρίτη, 19 Ιανουαρίου 2016 - 5:35:09 μ.μ. UTC+2, ο χρήστης Xristos Xristoou έγραψε: > > hello, > > > i want to create a query for likes in my post details > > my html tags > > {{mo

Re: like query django

2016-01-21 Thread James Schneider
On Tue, Jan 19, 2016 at 10:56 AM, Xristos Xristoou wrote: > i follow you not work again first i cant use {% url %} show me template > error,i thing so i am is very noob > must necesery tu urls for that ? > Can you post your template with the changes you made? And the errors that you are receivin

Re: like query django

2016-01-19 Thread Xristos Xristoou
i follow you not work again first i cant use {% url %} show me template error,i thing so i am is very noob must necesery tu urls for that ? Τη Τρίτη, 19 Ιανουαρίου 2016 - 5:35:09 μ.μ. UTC+2, ο χρήστης Xristos Xristoou έγραψε: > > hello, > > > i want to create a query for likes in my post details

Re: like query django

2016-01-19 Thread James Schneider
> > {{movies.likes}} peaple liked this article > Like > > > This is not how you should generate URL's within your templates. You should be using the {% url %} tag to automatically generate them: Like If using the slug in your urls.conf, your {% url %} tag would look something like this: Like S

Re: like query django

2016-01-19 Thread Xristos Xristoou
not work again florian same error again Τη Τρίτη, 19 Ιανουαρίου 2016 - 5:35:09 μ.μ. UTC+2, ο χρήστης Xristos Xristoou έγραψε: > > hello, > > > i want to create a query for likes in my post details > > my html tags > > {{movies.likes}} peaple liked this article > Like > > > my urls > > > url(r'^vi

Re: like query django

2016-01-19 Thread Florian Schweikert
On 19/01/16 16:35, Xristos Xristoou wrote: > url(r'^view/(?P[^\.]+)/$', views.view_post, name='view_post'), > url(r'^(?P[0−9]+)/$', views.like_post, name='like_post'), this defines urls like /1/ > The current URL, |like/1/|, didn't match any of these. of course it doesn't, you didn't define a li

like query django

2016-01-19 Thread Xristos Xristoou
hello, i want to create a query for likes in my post details my html tags {{movies.likes}} peaple liked this article Like my urls url(r'^view/(?P[^\.]+)/$', views.view_post, name='view_post'), url(r'^(?P[0−9]+)/$', views.like_post, name='like_post'), my view def like_post(request,pk=1)