Tuesday, August 25, 2015

Re: Django oscar core apps confilicts with my local apps

 
On Tue, Aug 25, 2015, at 04:33, Avraham Serour wrote:

Change your app name

 
Actually, changing the app label should suffice:
 
 
On Tue, Aug 25, 2015, 10:12 AM Kishan Mehta <kishanmehta3@gmail.com> wrote:

I have been working on a e commerce website. I am using django-oscar 1.1 for this. Here is my installed app looks like :


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 is conflicting with the analytics in get_core_apps().


Is there any way to resolve this ?


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
 
--
Hugo Osvaldo Barrera
 

No comments:

Post a Comment