2👍
Make sure you remove oscar.apps.catalogue
from the list of INSTALLED_APPS
when you replace it with your own override. In particular if you call get_core_apps()
, make sure you include forked_apps.catalogue
in the list you provide to the function.
Failing to do so may cause Django to load Oscar’s models before loading your overrides which would result in duplicates (and the error).
0👍
If I don’t import anything from oscar.apps.catalogue.models
then those models are not registered and hence I won’t see a conflict. I was importing a model(not shown in the question) from it thus I had a conflict.
- [Answered ]-TemplateDoesNotExist in Heroku using Django Rest Framework
- [Answered ]-Cleaned_data not working in django 1.8.6
- [Answered ]-How to implement forget password functionality using Django and Python
- [Answered ]-Django Braintree : KeyError at /payments-billing/
- [Answered ]-Django 'OneToOneField' object has no attribute 'id'
Source:stackexchange.com