[pypy-dev] Django DateField default value and migrations fail

Sergey Kurdakov sergey.forum at gmail.com
Wed Aug 17 04:02:08 EDT 2016


Hi William.

I have created a test project ( just a new Django Project in PythonStudio
so it is tested in Windows too, but this code will work on linux too )

http://ananas.ws/media/DjangoTest.zip

unzip
go to DjangoTest main directory and try to make migrations:

DjangoTest>pypy manage.py makemigrations

you'll get an error at the only  model  in the app
DjangoTest\app\models.py


from datetime import date


class TestClass(models.Model):

    start_date = models.DateField(
        verbose_name=u'start date',
        default=date.today,
        )

Best regards
Sergey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20160817/47605df8/attachment.html>


More information about the pypy-dev mailing list