python - 用`Pycharm`啟動(dòng)`Django`報(bào)錯(cuò)
問題描述
用pycharm跑建的Django項(xiàng)目 ,吧我自己的webapp添加之后就會(huì)報(bào)錯(cuò)
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:題主可以參考這個(gè)帖子How to resolve “django.core.exceptions.ImproperlyConfigured: Application labels aren’t unique, duplicates: foo” in Django 1.7?
相關(guān)文章:
1. 獲取上次登錄ip的原理是啥?2. 多種方式登陸的的用戶數(shù)據(jù)表設(shè)計(jì)3. 沒有輸出結(jié)果,也沒有報(bào)錯(cuò)信息4. phpstudy v8打開數(shù)據(jù)庫就出錯(cuò),而phpstudy 2018不會(huì)5. 為什么點(diǎn)擊登陸沒反應(yīng)6. 在視圖里面寫php原生標(biāo)簽不是要迫不得已的情況才寫嗎7. fetch_field_direct()報(bào)錯(cuò)8. 為什么說非對(duì)象調(diào)用成員函數(shù)fetch()9. 求救一下,用新版的phpstudy,數(shù)據(jù)庫過段時(shí)間會(huì)消失是什么情況?10. 請(qǐng)問下tp6框架的緩存在哪里設(shè)置,或者說關(guān)閉?
