Open kdechant opened 7 years ago
Seems to be fixed in #383
make test-py
DJANGO_SETTINGS_MODULE=tests.settings_contrib py.test
Traceback (most recent call last):
File "/home/ikondev/.virtualenvs/WidgyBase/bin/py.test", line 11, in
It seems the error is still present
so, how to slove this problem? thanks
Trying to install widgy on a brand-new site running Django 1.11 and Mezzanine 2.4.3. Got the following error when running 'python manage.py migrate':
Traceback (most recent call last): File "manage.py", line 14, in
execute_from_command_line(sys.argv)
File "/home/keith/sites/widgy/venv/lib/python3.4/site-packages/django/core/management/init.py", line 363, in execute_from_command_line
utility.execute()
File "/home/keith/sites/widgy/venv/lib/python3.4/site-packages/django/core/management/init.py", line 337, in execute
django.setup()
File "/home/keith/sites/widgy/venv/lib/python3.4/site-packages/django/init.py", line 27, in setup
apps.populate(settings.INSTALLED_APPS)
File "/home/keith/sites/widgy/venv/lib/python3.4/site-packages/django/apps/registry.py", line 108, in populate
app_config.import_models()
File "/home/keith/sites/widgy/venv/lib/python3.4/site-packages/django/apps/config.py", line 202, in import_models
self.models_module = import_module(models_module_name)
File "/home/keith/sites/widgy/venv/lib/python3.4/importlib/init.py", line 109, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 2254, in _gcd_import
File "", line 2237, in _find_and_load
File "", line 2226, in _find_and_load_unlocked
File "", line 1200, in _load_unlocked
File "", line 1129, in _exec
File "", line 1471, in exec_module
File "", line 321, in _call_with_frames_removed
File "/home/keith/sites/widgy/venv/lib/python3.4/site-packages/widgy/contrib/page_builder/models.py", line 19, in
from widgy.contrib.page_builder.db.fields import MarkdownField, VideoField, ImageField
File "/home/keith/sites/widgy/venv/lib/python3.4/site-packages/widgy/contrib/page_builder/db/fields.py", line 83, in
class VideoField(six.with_metaclass(models.SubfieldBase, models.URLField)):
AttributeError: 'module' object has no attribute 'SubfieldBase'
It seems that SubfieldBase was removed in Django 1.10.