python 3.x - django oscar core apps confilicts with my local apps -
i have been working on e commerce website. using django-oscar 1.1 this. here installed app looks :
installed_apps = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', # local apps 'content', 'usermgmt', 'resources', 'assessment', 'analytics', 'utils', # 'notify', # auth related apps 'oauth2_provider', 'social.apps.django_app.default', 'rest_framework_social_oauth2', # rest 'rest_framework', 'djoser', # misc - third party 'reversion', 'corsheaders', 'notifications', #oscar 'oscarapi',
] + get_core_apps()
while running server :
traceback (most recent call last): file "manage.py", line 10, in <module> execute_from_command_line(sys.argv) file "/home/rss-20/.virtualenvs/kishan_pal/local/lib/python3.4/site-packages/django/core/management/__init__.py", line 338, in execute_from_command_line utility.execute() file "/home/rss-20/.virtualenvs/kishan_pal/local/lib/python3.4/site-packages/django/core/management/__init__.py", line 312, in execute django.setup() file "/home/rss-20/.virtualenvs/kishan_pal/local/lib/python3.4/site-packages/django/__init__.py", line 18, in setup apps.populate(settings.installed_apps) file "/home/rss-20/.virtualenvs/kishan_pal/local/lib/python3.4/site-packages/django/apps/registry.py", line 89, in populate "duplicates: %s" % app_config.label) django.core.exceptions.improperlyconfigured: application labels aren't unique, duplicates: analytics
aparently analystics conflicting analytics in get_core_apps().
is there way resolve ?
you have pass list apps want overwrite to
+ get_core_apps(['analytics','app2'...])
Comments
Post a Comment