next I tried with:
python manage.py migrate
but I received the following error:
field=models.DateTimeField(default=date(2014, 4, 18)),
NameError: name 'date' is not defined
I see in the migration file the import to datetime is present:
import datetime
but in the line where is defined the date is missing datetime.date
field=models.DateTimeField(default=datetime.date(2014, 4, 18)),
I modified on this way and now it works.
--
Ticket URL: <https://code.djangoproject.com/ticket/22475>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* needs_better_patch: => 0
* resolution: => needsinfo
* needs_tests: => 0
* needs_docs: => 0
Comment:
This looks like #22363 to me. Could confirm your default date was
specified as a one-off default when you created the migration?
If that's the case could you try reproducing against the master branch.
--
Ticket URL: <https://code.djangoproject.com/ticket/22475#comment:1>