django-oscar: Incompatibilities with django 1.10

Hi guys, now i update django to 1.10 version and i have this problem:

 salahaddin@TulipanROG  ~/Proyectos/demo-oscar/ecommerce   master ● ?  (demo-oscar)  ./manage.py runserver                                                                                               ✓  1685  18:14:32 
Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x7f7ed4947730>
Traceback (most recent call last):
  File "/home/salahaddin/Proyectos/demo-oscar/lib/python3.5/site-packages/django/utils/autoreload.py", line 226, in wrapper
    fn(*args, **kwargs)
  File "/home/salahaddin/Proyectos/demo-oscar/lib/python3.5/site-packages/django/core/management/commands/runserver.py", line 113, in inner_run
    autoreload.raise_last_exception()
  File "/home/salahaddin/Proyectos/demo-oscar/lib/python3.5/site-packages/django/utils/autoreload.py", line 249, in raise_last_exception
    six.reraise(*_exception)
  File "/home/salahaddin/Proyectos/demo-oscar/lib/python3.5/site-packages/django/utils/six.py", line 685, in reraise
    raise value.with_traceback(tb)
  File "/home/salahaddin/Proyectos/demo-oscar/lib/python3.5/site-packages/django/utils/autoreload.py", line 226, in wrapper
    fn(*args, **kwargs)
  File "/home/salahaddin/Proyectos/demo-oscar/lib/python3.5/site-packages/django/__init__.py", line 27, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/home/salahaddin/Proyectos/demo-oscar/lib/python3.5/site-packages/django/apps/registry.py", line 108, in populate
    app_config.import_models(all_models)
  File "/home/salahaddin/Proyectos/demo-oscar/lib/python3.5/site-packages/django/apps/config.py", line 199, in import_models
    self.models_module = import_module(models_module_name)
  File "/home/salahaddin/Proyectos/demo-oscar/lib/python3.5/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 986, in _gcd_import
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 665, in exec_module
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "/home/salahaddin/Proyectos/demo-oscar/lib/python3.5/site-packages/oscar/apps/address/models.py", line 1, in <module>
    from oscar.apps.address.abstract_models import (
  File "/home/salahaddin/Proyectos/demo-oscar/lib/python3.5/site-packages/oscar/apps/address/abstract_models.py", line 13, in <module>
    from oscar.models.fields import PhoneNumberField, UppercaseCharField
  File "/home/salahaddin/Proyectos/demo-oscar/lib/python3.5/site-packages/oscar/models/fields/__init__.py", line 3, in <module>
    from django.db.models import SubfieldBase
ImportError: cannot import name 'SubfieldBase'

Here are a solution for this problem.

I’ll report some problems with django 1.10.

Thanks you!

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 2
  • Comments: 15 (8 by maintainers)

Most upvoted comments

@CoffiDev I should have time to work on this in Q1 of 2017, but I have another project which needs to be finished first. The code appears to be stable, but we need to dig into why the tests are failing.

Ok great, let me know if you need a hand. I have an Oscar site I want to update to Django 1.10 so keen to get this working.