python manage.py runserver
Cheers
On Sun, Jun 27, 2010 at 10:49 AM, zippzom <zippzom@gmail.com> wrote:
How does one go about restarting the server?
Thanks in advance!
> __unicode__()<http://docs.djangoproject.com/en/dev/ref/models/instances/#django.db....>
On Jun 25, 10:37 pm, Michael Schade <mich...@mschade.me> wrote:
> As Gabriel mentioned, make sure you reran the server after making the
> changes (though if using runserver, it should handle that for you). Also
> make sure you did not miss this bit in the tutorial:
>
> "Wait a minute. <Poll: Poll object> is, utterly, an unhelpful representation
> of this object. Let's fix that by editing the polls model (in the
> polls/models.py file) and adding a
> method> On Fri, Jun 25, 2010 at 5:54 PM, Gabriel Gayan <gabrielga...@gmail.com>wrote:
> to both Poll and Choice:"
>
> class Poll(models.Model):
> # ...
> def __unicode__(self):
> return self.question
>
> Sincerely,
> Michael Schade
> Spearhead Development LLC
>
>
> > Have you tried re-running the server after saving the changes?
> > the tutorial worked perfectly for me.
>
> > On Fri, Jun 25, 2010 at 1:16 PM, zippzom <zipp...@gmail.com> wrote:> >> django-users+unsubscribe@googlegroups.com<django-users%2Bunsubscribe@googlegroups.com>
>
> >> So, i'm working through the tutorial, but i'm having a problem with
> >> the unicode method in the part 1 writing your own apps. I've copied
> >> the code to the letter, but it still only returns <Poll:Poll object>
> >> instead <Poll: Whats Up?>. Any ideas why this could be happening?
>
> >> Sorry if this is the wrong place to post this.
>
> >> --
> >> 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+unsubscribe@googlegroups.com<django-users%2Bunsubscribe@googlegroups.com>
> >> For more options, visit this group at
> >>http://groups.google.com/group/django-users?hl=en.
>
> > --
> > Gabriel Gayan
>
> > --
> > 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
> > .
> > 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
--
Gabriel Gayan
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment