python - 用`Pycharm`啟動`Django`報錯
習慣沉默
習慣沉默 2017-05-18 10:47:05
0
1
535

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了也沒找到答案。

習慣沉默
習慣沉默

全部回覆(1)
洪涛

題主可以參考這篇文章How to resolve “django.core.exceptions.ImproperlyConfigured: Application labels aren't unique, duplicates: foo” in Django 1.7?

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板