Were you able to solve the problem @amarshall? I have the exact same error, do let me know please!
On Tuesday, March 31, 2015 at 8:04:23 PM UTC+5:30, Filipe Ximenes wrote:
-- On Tuesday, March 31, 2015 at 8:04:23 PM UTC+5:30, Filipe Ximenes wrote:
Thats strange.Are you using pip to install dependencies? Try uninstalling everything and reinstalling again.Make sure INSTALLED_APPS is not being defined somewhere else in the code.Does the error persists if you set DEBUG = False locally?On Tue, Mar 31, 2015 at 10:21 AM, amarshall <adria...@gmail.com> wrote:Hi Filipe,--
I have few apps installed. When I comment out the tastypie line my app builds but gets an error in production because tastypie app isn't found. Here it is:
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'rest_framework',
# 'south', // commented out after upgrade to Django 1.7
'tastypie',
'lokal', #my app
)
On Tuesday, March 31, 2015 at 5:52:55 AM UTC-4, Filipe Ximenes wrote:Can you show us your INSTALED_APPS?
It may be the case you have a lot of apps installed and is not seeing a duplicate reference to tastypie.On Mar 29, 2015 9:43 PM, "amarshall" <adria...@gmail.com> wrote:To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.Hi,--
So I updated my django project from django 1.6 to 1.7.7 and when I run "python manage.py migrate" I get this error stating that I have a duplicate label.
Here's the traceback
Creating tables...
Installing custom SQL...
Installing indexes...
Running migrations:
Applying tastypie.0001_initial...Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_from_command_line(sys.argv )
File "/usr/local/lib/python2.7/dist-packages/django/core/manageme , line 385, in execute_from_command_linent/__init__.py"
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/manageme , line 377, in executent/__init__.py"
self.fetch_command(subcommand). run_from_argv(self.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/manageme , line 288, in run_from_argvnt/base.py"
self.execute(*args, **options.__dict__)
File "/usr/local/lib/python2.7/dist-packages/django/core/manageme , line 338, in executent/base.py"
output = self.handle(*args, **options)
File "/usr/local/lib/python2.7/dist-packages/django/core/manageme , line 161, in handlent/commands/migrate.py"
executor.migrate(targets, plan, fake=options.get("fake", False))
File "/usr/local/lib/python2.7/dist-packages/django/db/migrations , line 68, in migrate/executor.py"
self.apply_migration(migration, fake=fake)
File "/usr/local/lib/python2.7/dist-packages/django/db/migrations , line 96, in apply_migration/executor.py"
if self.detect_soft_applied(migration ):
File "/usr/local/lib/python2.7/dist-packages/django/db/migrations , line 140, in detect_soft_applied/executor.py"
apps = project_state.render()
File "/usr/local/lib/python2.7/dist-packages/django/db/migrations , line 57, in render/state.py"
self.apps = Apps([AppConfigStub(label) for label in sorted(self.real_apps + list(app_labels))])
File "/usr/local/lib/python2.7/dist-packages/django/apps/registry , line 56, in __init__.py"
self.populate(installed_apps)
File "/usr/local/lib/python2.7/dist-packages/django/apps/registry , line 89, in populate.py"
"duplicates: %s" % app_config.label)
django.core.exceptions.ImproperlyConfigured : Application labels aren't unique, duplicates: tastypie
Not sure what to do here. I remove tastypie from the list of INSTALLED_APPS in my settings and everything works fine. but I do need it. Any suggestions ?
You received this message because you are subscribed to the Google Groups "Django users" group.com .
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users .
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7e4cfbf8-d3e0 .-4e0e-a38c-b83930ffa3b6%40goog legroups.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...@googlegroups.com .
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users .
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5128dd5e- .faa1-4c6a-9cf4-0a59f7d0bc2c% 40googlegroups.com --
Filipe Ximenes
+55 (81) 8245-9204
Vinta Software Studio
http://www.vinta.com.br
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.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9ddcfb50-32d4-4925-9939-feb8ceb06944%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment