【发布时间】:2015-02-23 13:55:49
【问题描述】:
我正在尝试覆盖 django-oscar 中的客户应用程序。为此,我在项目的应用程序文件夹中创建了客户应用程序。当我运行该项目时,我在 django 1.7.4 中遇到如下错误:
django.core.exceptions.ImproperlyConfigured: Application labels aren't unique, duplicates: customer
我浏览了 django https://docs.djangoproject.com/en/1.7/ref/applications/#django.apps.AppConfig 中的文档,但没有成功。那么有没有其他方法可以扩展任何 django-oscar 的应用程序并根据要求修改代码。
这是我的客户应用的views.py:
from oscar.apps.customer.views import ProfileView as CoreProfileView
class ProfileView(CoreProfileView):
template_name = 'new_account.html'
以下是项目的settings.py代码sn-p:
INSTALLED_APPS = [
'apps.customer',
]
提前致谢。
【问题讨论】:
标签: python django django-oscar