迁移Django-Oscar-Accounts会显示错误消息

时间:2018-10-05 08:00:08

标签: python django django-oscar

我按照文档中给出的有关here找到的Django oscar帐户的说明进行操作,并使用pip install django-oscar-accounts安装了Django Oscar帐户,然后将oscar_accounts添加到了我的INSTALLED_APPS。然后运行命令./manage.py migrate oscar_accounts,此后我得到错误:

ModuleNotFoundError: No module named 'oscar_accounts'

因此在我的settings.py文件中,我将oscar_accounts更改为accounts,然后在运行相同的manage.py命令时收到错误消息:

File "/project_path/env/lib/python3.6/site-packages/accounts/abstract_models.py", line 5, in <module>
from django.core.urlresolvers import reverse
ModuleNotFoundError: No module named 'django.core.urlresolvers'

我该如何解决? 我正在使用Django-oscar 1.6.1和python 3.6

0 个答案:

没有答案