python - AttributeError: 'Settings' object has no attribute 'OSCAR_REQUIRED_ADDRESS_FIELDS' -


i have issue in django oscar when execute python manage.py migrate beginner in django oscar .any , suggestions welcome. below error message.

@localhost production1]$ python manage.py makemigrations traceback (most recent call last):   file "manage.py", line 22, in <module>     execute_from_command_line(sys.argv)   file "/usr/lib64/python2.7/site-packages/django/core/management/__init__.py", line 363, in execute_from_command_line     utility.execute()   file "/usr/lib64/python2.7/site-packages/django/core/management/__init__.py", line 337, in execute     django.setup()   file "/usr/lib64/python2.7/site-packages/django/__init__.py", line 27, in setup     apps.populate(settings.installed_apps)   file "/usr/lib64/python2.7/site-packages/django/apps/registry.py", line 108, in populate     app_config.import_models()   file "/usr/lib64/python2.7/site-packages/django/apps/config.py", line 202, in import_models     self.models_module = import_module(models_module_name)   file "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module     __import__(name)   file "/usr/lib/python2.7/site-packages/oscar/apps/address/models.py", line 1, in <module>     oscar.apps.address.abstract_models import (   file "/usr/lib/python2.7/site-packages/oscar/apps/address/abstract_models.py", line 19, in <module>     class abstractaddress(models.model):   file "/usr/lib/python2.7/site-packages/oscar/apps/address/abstract_models.py", line 35, in abstractaddress     postcode_required = 'postcode' in settings.oscar_required_address_fields   file "/usr/lib64/python2.7/site-packages/django/conf/__init__.py", line 57, in __getattr__     val = getattr(self._wrapped, name) attributeerror: 'settings' object has no attribute 'oscar_required_address_fields' 

by docs

the last addition settings file import of oscar’s default settings:

from oscar.defaults import * 

more details install-by-hand, hope you


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -