用pycharm
跑建的Django
專案 ,吧我自己的webapp加入之後就會報錯
C:\Users\fc\AppData\Local\JetBrains\Toolbox\apps\PyCharm-P\ch-01.4424.42\bin\runnerw.exe C:\Users\fc\untitled2\Scripts\python.exe C:/Users/fc/Documents/GitHub/Python/untitled/manage.py runserver 8000
Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x000002BCF8C3C840>
Traceback (most recent call last):
File "C:\Users\fc\untitled2\lib\site-packages\django\utils\autoreload.py", line 227, in wrapper
fn(*args, **kwargs)
File "C:\Users\fc\untitled2\lib\site-packages\django\core\management\commands\runserver.py", line 117, in inner_run
autoreload.raise_last_exception()
File "C:\Users\fc\untitled2\lib\site-packages\django\utils\autoreload.py", line 250, in raise_last_exception
six.reraise(*_exception)
File "C:\Users\fc\untitled2\lib\site-packages\django\utils\six.py", line 685, in reraise
raise value.with_traceback(tb)
File "C:\Users\fc\untitled2\lib\site-packages\django\utils\autoreload.py", line 227, in wrapper
fn(*args, **kwargs)
File "C:\Users\fc\untitled2\lib\site-packages\django\__init__.py", line 27, in setup
apps.populate(settings.INSTALLED_APPS)
File "C:\Users\fc\untitled2\lib\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: Dj_learning_blog
Google了也沒找到答案。
題主可以參考這篇文章How to resolve “django.core.exceptions.ImproperlyConfigured: Application labels aren't unique, duplicates: foo” in Django 1.7?