2👍
✅
Ahaaaa. Nothing like posting your question to jog a thought that leads you to the answer.
I realized I should dig deeper into the error:
$ python -Werror manage.py runserver
With that stack trace, I get a line showing:
File "/Users/mboszko/.virtualenvs/opticaldev/lib/python2.7/site-packages/django_date_extensions/fields.py", line 99, in
class ApproximateDateField(with_metaclass(models.SubfieldBase, models.CharField)):
So, the use of SubfieldBase
is actually inside a package, I had installed, django-date-extensions. This was at 1.1.0 in my virtualenv, and once I did pip install --upgrade django-date-extensions
to bring it up to 2.0, the error disappears.
Fixed!
Source:stackexchange.com