Re: Problem in the Tutorial 01

2014-07-27 Thread Ricardo Daniel Quiroga
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

Re: Problem in the Tutorial 01

2014-07-24 Thread 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.djangoproject.com/en/1.6/intro/tutorial01/). > I'm using Python27 (C:\Python27) > In C:\Python27\Scripts\ I have the

Re: Problem in the Tutorial 01

2014-07-24 Thread Sergiy Khohlov
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

Problem in the Tutorial 01

2014-07-24 Thread Fabian Zentner
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

Re: help with tutorial 01

2012-01-29 Thread Mario Gudelj
That should work. You must have some unusual setting in settings.py. Can you post time zone references from that file? On 20 January 2012 09:03, Cyd wrote: > In the tutorial here: > > https://docs.djangoproject.com/en/1.3/intro/tutorial01/ > > I get no errors up until the p.save() at the end

help with tutorial 01

2012-01-27 Thread Cyd
In the tutorial here: https://docs.djangoproject.com/en/1.3/intro/tutorial01/ I get no errors up until the p.save() at the end: # No polls are in the system yet. >>> Poll.objects.all() [] # Create a new Poll. >>> import datetime >>> p = Poll(question="What's u

Re: tutorial 01

2008-02-09 Thread Wilson MacGyver
Jeff Anderson wrote: > the command isn't found because it isn't in your path. > Are you sure you installed it correctly? > > On mac os x, I recommend installing django through fink if you are new > to *nix commands and shells and the like. > > You can also change to the directory that has djang

Re: from tutorial 01

2008-02-09 Thread newbiedoobiedoo
you can run "cd" in perl, and some other languages... since i'm not a python afficionado, you can see why i would not see to read between the lines right off the bat. On Feb 9, 4:24 pm, Jeff Anderson <[EMAIL PROTECTED]> wrote: > newbiedoobiedoo wrote: > > You can't run "cd" from python. So this

Re: from tutorial 01

2008-02-09 Thread newbiedoobiedoo
weelll... why wasn't it in my path? i'm not a doofus... just think the directions are not fail safe, and english is a difficult language to create exact meaning. better to have some script examples i think. i just installed postgresql, and it was big and hairy and longish install, but it wen

next step in tutorial 01

2008-02-09 Thread newbiedoobiedoo
I'm moving past installing mod_python. The next step is installing postgresql. The link on the tutorial yields nothing on OSX postgresql. Would the following be acceptable for this step? http://developer.apple.com/internet/opensource/postgres.html --~--~-~--~~~---~--~

Re: from tutorial 01

2008-02-09 Thread Jeff Anderson
newbiedoobiedoo wrote: You can't run "cd" from python. So this is talking about a command line shell. that is correct... The tutorial assumes you've worked with command line shells before, and possibly python. Perhaps it would be beneficial to go through a basic Unix shell tutorial, follow

Re: tutorial 01

2008-02-09 Thread Jeff Anderson
./django-admin.py. Play around with it for a little while to get the hang of the environment. There are plenty of tutorials online that can help you learn about the command line. Jeff Anderson newbiedoobiedoo wrote: I have just installed python and django. I am working on tutorial 01. T

from tutorial 01

2008-02-09 Thread newbiedoobiedoo
This is taken from the tutorial page: >From the command line, cd into a directory where you'd like to store your code, then run the command django-admin.py startproject mysite. This will create a mysite directory in your current directory. You can't run "cd" from python. So this is talking abo

tutorial 01

2008-02-09 Thread newbiedoobiedoo
I have just installed python and django. I am working on tutorial 01. The command django-admin.py startproject mysite failed. Error message: bash: django-admin.py: command not found (I'm on osx 10.4) Thanks! --~--~-~--~~~---~--~~ You received this me