get() si no existe coincidencia te tira error asi de simple.
2014-07-24 11:41 GMT-03:00 Daniel Roseman :
> On Thursday, 24 July 2014 13:53:54 UTC+1, Fabian Zentner wrote:
>
>> Hey guys,
>>
>> I'm new with Django and Python as well. I'm doing the tutorial 1 on the
>> website (https://docs.djangop
On Thursday, 24 July 2014 13:53:54 UTC+1, Fabian Zentner wrote:
>
> Hey guys,
>
> I'm new with Django and Python as well. I'm doing the tutorial 1 on the
> website (https://docs.djangoproject.com/en/1.6/intro/tutorial01/).
> I'm using Python27 (C:\Python27)
> In C:\Python27\Scripts\ I have the
On Thu, Jul 24, 2014 at 3:53 PM, Fabian Zentner <
zentner.fab...@googlemail.com> wrote:
> *Poll.objects.get(pub_date__year=current_year) *
try to use
*Poll.objects.first()*
you have 2 object and it is a reason of your traceback
Many thanks,
Serge
+380 636150445
skype: skhohlov
--
You rece
Hey guys,
I'm new with Django and Python as well. I'm doing the tutorial 1 on the
website (https://docs.djangoproject.com/en/1.6/intro/tutorial01/).
I'm using Python27 (C:\Python27)
In C:\Python27\Scripts\ I have the project mysite and polls like in the
tutorial
In the part "Playing with th
4 matches
Mail list logo