python - 用`Pycharm`啟動`Django`報錯
問題描述
用pycharm跑建的Django項目 ,吧我自己的webapp添加之后就會報錯
C:UsersfcAppDataLocalJetBrainsToolboxappsPyCharm-Pch-0171.4424.42binrunnerw.exe C:Usersfcuntitled2Scriptspython.exe C:/Users/fc/Documents/GitHub/Python/untitled/manage.py runserver 8000Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x000002BCF8C3C840>Traceback (most recent call last): File 'C:Usersfcuntitled2libsite-packagesdjangoutilsautoreload.py', line 227, in wrapper fn(*args, **kwargs) File 'C:Usersfcuntitled2libsite-packagesdjangocoremanagementcommandsrunserver.py', line 117, in inner_run autoreload.raise_last_exception() File 'C:Usersfcuntitled2libsite-packagesdjangoutilsautoreload.py', line 250, in raise_last_exception six.reraise(*_exception) File 'C:Usersfcuntitled2libsite-packagesdjangoutilssix.py', line 685, in reraise raise value.with_traceback(tb) File 'C:Usersfcuntitled2libsite-packagesdjangoutilsautoreload.py', line 227, in wrapper fn(*args, **kwargs) File 'C:Usersfcuntitled2libsite-packagesdjango__init__.py', line 27, in setup apps.populate(settings.INSTALLED_APPS) File 'C:Usersfcuntitled2libsite-packagesdjangoappsregistry.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?
相關文章:
1. java - 如何在Fragment中調用Activity的onNewIntent?2. python - (初學者)代碼運行不起來,求指導,謝謝!3. python的文件讀寫問題?4. mysql里的大表用mycat做水平拆分,是不是要先手動分好,再配置mycat5. javascript - jquery hide()方法無效6. javascript - js 對中文進行MD5加密和python結果不一樣。7. javascript - 圖片鏈接請求一直是pending狀態,導致頁面崩潰,怎么解決?8. window下mysql中文亂碼怎么解決??9. python - 獲取到的數據生成新的mysql表10. javascript - h5上的手機號默認沒有識別
