Hi brendan,
You have the import class before using, so
from polls.models import Poll
2012/10/25 Brendan Carroll
> Hi all
> I am new to Django and I'm having an issue with some code. I am trying to
> get through the first tutorial from the Django site.
> I have a file called polls/models.py and
Hi again,
Remove 'date published' string from pub_date=models.DateTimeField
from django.db import models
class Poll(models.Model):
question = models.CharField(max_length=200)
put_date = models.DateTimeField()
class Choice(models.Model):
poll = models.ForeignKey(Poll)
choice = mo
Hello,
Before sync. import user, and set size
from django.contrib.auth.models import User
User._meta.get_field_by_name('username')[0].max_length = 75
in any model which is in installed_apps list..
2013/5/25 uday kumar g
> Hi
>
> I am using the User model.
> I want the username to be more than
3 matches
Mail list logo