L
L
Les Alterman2015-12-11 21:40:06
Django
Les Alterman, 2015-12-11 21:40:06

How to fix error while syncing with DB in Django?

In the models, I decided to add a new category_date field. When synchronizing, Django does not want to add this field to the database and throws an error when executing manage.py migrate
Match = datetime_re.match(value)
TypeError: expected string or bytes-like object
What should I do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2015-12-11
@sim3x

stackoverflow.com/questions/27220480/django-dateti...
You need to specify a default value or a value that will fill the current records
or so stackoverflow.com/questions/25403110/migrate-a-dat...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question