Re: pub_date timezone

2012-10-25 Thread Emrah Atalay
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

Re: pub_date timezone

2012-10-25 Thread Emrah Atalay
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

Re: Problem How to increase the username filed size from 30 to 75

2013-05-25 Thread Emrah Atalay
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