ImproperlyConfigured: The included urlconf '<module 'xx.urls' from './xx/urls.pyc'>' does not appear to have any patterns in it. If you see valid patterns in the file then the issue is probably caused by a circular import.

以上就是报错信息,原因是一级urls里写着:

url(r'^xx/', include('xx.urls')),

但进入xx目录里后的二级urls文件里却是空的或者全部都注释掉的,就会导致以上报错。所以解决办法是,要么删掉一级urls里的这行,或者填充二级urls里的内容。
而更有意思的是,此问题在postman插件下测试某一个api的url无报错,直接在浏览器上测试就会报错(前端搭建在nginx上)。

解决If you see valid patterns in the file then the issue is probably caused by a circular import相关推荐

  1. JAVA 解决 unable to find valid certification path to requested target 证书认证

    JAVA 解决 unable to find valid certification path to requested target 证书认证 下载证书 导入证书 更新证书 其他命令 下载证书 点击 ...

  2. 解决The selected file is not a valid Visual Studio solution file问题

    最近在打开以前的Visual Studio解决方案文件(*.sln)时,出现了"The selected file is not  a  valid Visual Studio soluti ...

  3. Linux/ubuntu 安装 redis 4.0报错解决:redis-server.service: Can't open PID file /var/run/redis/redis-server.

    此文首发于我的个人博客:Linux/ubuntu 安装 redis 4.0报错解决:redis-server.service: Can't open PID file /var/run/redis/r ...

  4. mysql> select file,domain,alias,valid from tbl_check where file=‘ecloud_0824-0830.csv‘ into outfile

    mysql> select file,domain,alias,valid from tbl_check where file='ecloud_0824-0830.csv' into outfi ...

  5. python 报错 most likely due to a circular import 解决方法

    原因各个python文件,互相引用,造成的 循环引用问题. 解决方法:把需要引用的独立成一个文件,让其单向引用 使用python写一个稍微大一点的工程时,经常会遇到循环import,即cicular ...

  6. 成功解决raise ValueError(‘No model found in config file.‘) ValueError: No model found in config file.

    成功解决raise ValueError('No model found in config file.') ValueError: No model found in config file. 目录 ...

  7. 成功解决xlrd.biffh.XLRDError: Unsupported format, or corrupt file: Expected BOF record; found b‘Debug is

    成功解决xlrd.biffh.XLRDError: Unsupported format, or corrupt file: Expected BOF record; found b'Debug is ...

  8. 成功解决Exception unhandled RuntimeError run loop already started File: F:\Program Files\Python\Python

    成功解决Exception "unhandled RuntimeError" run loop already started File: F:\Program Files\Pyt ...

  9. 成功解决 SyntaxError: Non-UTF-8 code starting with \xc0 in file but no encoding declared; see http://p

    成功解决  SyntaxError: Non-UTF-8 code starting with \xc0 in file  but no encoding declared; see http://p ...

最新文章

  1. Maximum Product of Word Lengths
  2. 过滤脚本(C#,script,iframe,html)
  3. windows操作系统_windows操作系统如何格式化u盘【操作方法】
  4. 金山办公科创板过会 雷军有望迎来实控第三家上市公司
  5. 货物贸易外汇监测系统 企业版_能源在线监测系统对用能企业的优势
  6. 28335scififo中断接收与发送
  7. 摄像机跟随与视野调整
  8. iOS下Safari自动化测试
  9. 免费资源网站,你想要的全都有【各类宝藏资源 】
  10. oracle查找用户名和密码忘记了,Oracle忘记用户名和密码的解决方案
  11. php映射脚本,代替php脚本
  12. openwrt屏蔽广告不生效
  13. 基于随机森林算法的贷款违约预测模型研究(Give me some credit)
  14. 免杀远程监控软件大盘点
  15. iphone相册储存空间已满_iPhone老提示储存空间已满的具体处理操作
  16. windows无法验证发行者
  17. 【转】从程序员到项目经理--西西吹雪
  18. Python中的getattr()和__getattr__方法
  19. 《计算机视觉和图像处理简介 - 中英双语 + 代码实践版》:使用动量优化 Momentum 的随机梯度下降训练神经网络
  20. Win11 KB5019157(22000.1281)11月累积补丁推送了!

热门文章

  1. 2022-2028全球小型建筑设备行业调研及趋势分析报告
  2. 将 MobaXterm 的高亮/突出显示集功能(HighLight sets)移植到 Xshell6 中使用
  3. Xshell终端工具突出显示集的正则配置
  4. 为论文建立索引的一种方法
  5. Addressable Asset System(进阶版AB)和AssetBundle(以下简称AB)制作的资源管理系统的对比
  6. OpenGL入门学习[三]
  7. 朴素贝叶斯——垃圾邮件过滤
  8. 灵境(元宇宙)金融投资及监管的探讨
  9. vue实现搜索框搜索新增_基于Vue.js实现简单搜索框
  10. 深圳MPD大会 讲师演讲稿 2014-10