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. 为什么我ping不通我的docker容器呢???2. docker-machine添加一个已有的docker主机问题3. Nginx如何进行跨域配置,才能使用DELETE,PUT请求方法4. javascript - 使用echarts做一个横向的柱状图,但是数据超出坐标轴范围了怎么办?5. docker不显示端口映射呢?6. android.text.Html.fromHtml()无法解析<ol><li> </li></ol>应该怎么解决7. css3 - 有好的Blog的CSS样式吗?8. docker start -a dockername 老是卡住,什么情况?9. java - 白盒加密源码或者库10. 我正在使用jsp / jstl / spring动态生成css和js如何将此结果放置在头部的链接标签中不在头部的脚本标签中

网公网安备