首页 > 其他分享 >The included URLconf 'devops.urls' does not appear to have any patterns in it

The included URLconf 'devops.urls' does not appear to have any patterns in it

时间:2022-10-12 16:45:16浏览次数:79  
标签:appear lib py devops python3.6 patterns usr local python3

问题背景:

clone git仓库项目启动django时候报错

/usr/local/python3/lib/python3.6/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release.
  from cryptography.hazmat.backends import default_backend
Exception in thread django-main-thread:
Traceback (most recent call last):
  File "/usr/local/python3/lib/python3.6/site-packages/django/urls/resolvers.py", line 600, in url_patterns
    iter(patterns)
TypeError: 'module' object is not iterable

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/python3/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/usr/local/python3/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/python3/lib/python3.6/site-packages/django/utils/autoreload.py", line 64, in wrapper
    fn(*args, **kwargs)
  File "/usr/local/python3/lib/python3.6/site-packages/django/core/management/commands/runserver.py", line 118, in inner_run
    self.check(display_num_errors=True)
  File "/usr/local/python3/lib/python3.6/site-packages/django/core/management/base.py", line 423, in check
    databases=databases,
  File "/usr/local/python3/lib/python3.6/site-packages/django/core/checks/registry.py", line 76, in run_checks
    new_errors = check(app_configs=app_configs, databases=databases)
  File "/usr/local/python3/lib/python3.6/site-packages/django/core/checks/urls.py", line 13, in check_url_config
    return check_resolver(resolver)
  File "/usr/local/python3/lib/python3.6/site-packages/django/core/checks/urls.py", line 23, in check_resolver
    return check_method()
  File "/usr/local/python3/lib/python3.6/site-packages/django/urls/resolvers.py", line 412, in check
    for pattern in self.url_patterns:
  File "/usr/local/python3/lib/python3.6/site-packages/django/utils/functional.py", line 48, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/usr/local/python3/lib/python3.6/site-packages/django/urls/resolvers.py", line 607, in url_patterns
    raise ImproperlyConfigured(msg.format(name=self.urlconf_name)) from e
django.core.exceptions.ImproperlyConfigured: The included URLconf 'devops.urls' 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.

解决方案:

Try using python manage.py makemigrations (Insert your Django app name)

可能是缺少某些依赖包,最好启动之前先将项目中的第三方依赖包安装一下。

标签:appear,lib,py,devops,python3.6,patterns,usr,local,python3
From: https://www.cnblogs.com/i1991/p/16785008.html

相关文章

  • 【云原生】DevOps(六):Jenkins流水线
    本文目录:​​一、Jenkins流水线任务介绍​​​​二、Jenkins流水线任务​​​​1.构建Jenkins流水线任务​​​​2.Groovy脚本​​​​3.Jenkinsfile实现​​​​三、Jen......
  • UI基础 - UIAppearance
    前言1-在一些app中会涉及到更改外观设置的功能,最普遍的就是夜间模式和白天模式的切换,而对于外观的更改必定是一个全局的东西。这在iOS5以前想要实现这样的效果是比......
  • 辐射图中的仰角和方位角-Elevation and Azimuth in Radiation Patterns
    前言在辐射图中有时候会用到两个方位术语:仰角(Elevation)和方位角(Azimuth),这里介绍下什么意思。方位角(Azimuth)指的是罗盘方位,假设有一个圆形的空间。那么在XY平面上,就可......
  • @Devops jenkins安装jenkins的项目构建详解
    文章目录​​Devops​​​​一、jenkins安装步骤​​​​1、安装jdk​​​​2、获取安装包​​​​3、安装​​​​4、配置文件修改​​​​5、启动jenkins​​​​6、浏览......
  • 向devOps,还是focus dev
    qtc++devOps  两个方向,如何抉择,向devOps,还是focusdev,如果当前完全focusqtdev是很痛苦的,有点底子但是路很崎岖,很多东西得学,devOps按目前状况,也很难突出优势。......
  • DevOps现代化
    从持续构建到持续集成遗留系统的构建方式在遗留系统中,一次上线前构建过程可能是这样的:一位打包专员,在本地或远程的机器上拉取代码,完成集成、打包和测试的工作,并准备手动......
  • Google 发布:DevOps 2022现状报告
    在过去的八年中,全球超过33,000名专业人士参与了AccelerateStateofDevOps调查,使其成为同类研究中规模最大、运行时间最长的一项。AccelerateStateofDevOps报告提......
  • devops学习笔记-jenkins pipeline流水线发布
    jenkinspipeline介绍要实现CD,先要实现CI。CDPipeline就是一个代码文件,里面把你项目业务场景都通过Groovy代码和Pipeline语法实现,一个一个业务串联起来,全部实现自动化,从代......
  • 移动研发 DevOps 落地实践
    大家好,我是来自支付宝终端工程技术团队的十境。本文将带领大家了解支付宝移动端如何随着移动市场的告诉发展,逐步沉淀优化出适用业务发展需求的研发效能实践。0.背景如何解......
  • DevOps落地实践点滴和踩坑记录-(2) -聊聊平台建设
    很久没有写文章记录了,上一篇文章像流水账一样,把所见所闻一个个记录下来。这次专门聊聊DevOps平台的建设吧,有些新的体会和思考,希望给正在做这个事情的同学们一些启发吧。​​......