I understand your frustration. I'm sorry for not posting my code with my first post.
my settings.py file (only up to the part I changed) is below: # Django settings for mysite project. DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Name', 'n...@email.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. 'NAME': 'C:/Django/django/bin/mysite/ database.db', # Or path to database file if using sqlite3. 'USER': '', # Not used with sqlite3. 'PASSWORD': '', # Not used with sqlite3. 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. 'PORT': '', # Set to empty string for default. Not used with sqlite3. } } My models.py file is: from django.db import models import datetime # Create your models here. class Poll(models.Model): question = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') def _unicode_(self): return self.question def was_published_today(self): return self.pub_date.date() == datetime.date.today() class Choice(models.Model): poll = models.ForeignKey(Poll) choice = models.CharField(max_length=200) votes = models.IntegerField() def _unicode_(self): return self.choice Thanks for your help. On Jun 15, 10:55 am, "Cal Leeming [Simplicity Media Ltd]" <cal.leem...@simplicitymedialtd.co.uk> wrote: > Please please please please PLEASE, always post the code you are having > trouble with. I've lost track on the amount of times people have to be told > this :/ It's like saying "I made a change to this file, but it didn't work, > why not?" Come on man. > > > > > > > > On Wed, Jun 15, 2011 at 5:48 PM, Kyle Latham <kly.lat...@gmail.com> wrote: > > I'm trying to work my way through the tutorial 1 but am getting stuck. > > I am using python 2.7 and am using SQLite3 like the tutorial > > recommended for beginners > > > I am at the step where I am changing the models.py file to add the > > _unicode_ methods to display the Poll Object > > > I believe I have the NAME in the settings.py file set up correctly. I > > first set did > > 'NAME': 'database.db', > > to create my database file, then I changed it to the path to that > > file. > > > Anyways, after I modified the models.py file to display the > > question... > > >>> Poll.objects.all() > > [<Poll: What's up?>] > > > I am still getting > > > >>> Poll.objects.all() > > [<Poll: Poll object>] > > > as the output. > > > Any help would be greatly appreciated. > > > Thanks, > > > Kyle > > > -- > > You received this message because you are subscribed to the Google Groups > > "Django users" group. > > To post to this group, send email to django-users@googlegroups.com. > > To unsubscribe from this group, send email to > > django-users+unsubscr...@googlegroups.com. > > For more options, visit this group at > >http://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.