您好我是django_dynamic_scraper的新手。因为我已经安装了它并且还有djcelery但是当我应用迁移时它会显示此错误。我谷歌但没有找到任何东西。 请具体说明我会更好理解
这是我的settings.py
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
#third party apps
'registration',
'crispy_forms',
# 'schedule',
# 'south',
# 'kombu.transport.django',
'djcelery',
'dynamic_scraper',
# my apps
'article',
'search_engine',
'socialnetwork',
)
申请迁移时
Operations to perform:
Synchronize unmigrated apps: article, dynamic_scraper, socialnetwork, crispy_forms
Apply all migrations: search_engine, sessions, admin, dynamic_scraper, djcelery, sites, auth, contenttypes, registration
这是追溯错误
Applying dynamic_scraper.0001_initial...Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/home/suz/social-network-sujit/local/lib/python2.7/site-packages/Django-1.7.2-py2.7.egg/django/core/management/__init__.py", line 385, in execute_from_command_line
utility.execute()
File "/home/suz/social-network-sujit/local/lib/python2.7/site-packages/Django-1.7.2-py2.7.egg/django/core/management/__init__.py", line 377, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/suz/social-network-sujit/local/lib/python2.7/site-packages/Django-1.7.2-py2.7.egg/django/core/management/base.py", line 288, in run_from_argv
self.execute(*args, **options.__dict__)
File "/home/suz/social-network-sujit/local/lib/python2.7/site-packages/Django-1.7.2-py2.7.egg/django/core/management/base.py", line 338, in execute
output = self.handle(*args, **options)
File "/home/suz/social-network-sujit/local/lib/python2.7/site-packages/Django-1.7.2-py2.7.egg/django/core/management/commands/migrate.py", line 161, in handle
executor.migrate(targets, plan, fake=options.get("fake", False))
File "/home/suz/social-network-sujit/local/lib/python2.7/site-packages/Django-1.7.2-py2.7.egg/django/db/migrations/executor.py", line 68, in migrate
self.apply_migration(migration, fake=fake)
File "/home/suz/social-network-sujit/local/lib/python2.7/site-packages/Django-1.7.2-py2.7.egg/django/db/migrations/executor.py", line 96, in apply_migration
if self.detect_soft_applied(migration):
File "/home/suz/social-network-sujit/local/lib/python2.7/site-packages/Django-1.7.2-py2.7.egg/django/db/migrations/executor.py", line 140, in detect_soft_applied
apps = project_state.render()
File "/home/suz/social-network-sujit/local/lib/python2.7/site-packages/Django-1.7.2-py2.7.egg/django/db/migrations/state.py", line 57, in render
self.apps = Apps([AppConfigStub(label) for label in sorted(self.real_apps + list(app_labels))])
File "/home/suz/social-network-sujit/local/lib/python2.7/site-packages/Django-1.7.2-py2.7.egg/django/apps/registry.py", line 56, in __init__
self.populate(installed_apps)
File "/home/suz/social-network-sujit/local/lib/python2.7/site-packages/Django-1.7.2-py2.7.egg/django/apps/registry.py", line 89, in populate
"duplicates: %s" % app_config.label)
django.core.exceptions.ImproperlyConfigured: Application labels aren't unique, duplicates: dynamic_scraper