ashishnitinpatil / django-oscar-cash-on-delivery

Cash on delivery for django-oscar
Other
4 stars 4 forks source link

ImportError: cannot import name 'Application' from 'oscar.core.application' #4

Open al2helal opened 4 years ago

al2helal commented 4 years ago

I follow these things

Install: pip install -e git+https://github.com/michaelkuty/django-oscar-cash-on-delivery#egg=cashondelivery
Add cashondelivery to INSTALLED_APPS
Add cashondelivery urls to project urls:

from cashondelivery.dashboard.app import application as cod_app

url(r'^dashboard/cod/', include(cod_app.urls)), from your installation instruction. Then save and my server reloaded. But shows following error. My django version is 2.2.10.

File ".../src/cashondelivery/cashondelivery/dashboard/app.py", line 5, in from oscar.core.application import Application ImportError: cannot import name 'Application' from 'oscar.core.application' (~/.local/lib/python3.7/site-packages/oscar/core/application.py)

ashishnitinpatil commented 4 years ago

Since you want to use the updated (my) repo's code, you should install with below command -

pip install -e git+https://github.com/ashishnitinpatil/django-oscar-cash-on-delivery#egg=cashondelivery
ashishnitinpatil commented 4 years ago

Also, please see issue https://github.com/ashishnitinpatil/django-oscar-cash-on-delivery/issues/3, this repository does not support Django 2+.