摘要: 启动django应用时报如下错误:Error: [WinError 10013] 以一种访问权限不允许的方式做了一个访问套接字的尝试。 1.首先退出酷狗音乐再试试 2.是8000端口被其他程序占用了,杀掉占用的程序就可以 (1)查找哪个进程占用了8000端口 netstat -ano|findstr 阅读全文
posted @ 2022-04-16 20:43 侬侬发 阅读(1156) 评论(0) 推荐(0) 编辑
摘要: C:\Users\liujun>where pythonD:\Python\Python310\python.exeD:\Python\Python38\python.exeC:\Users\liujun\AppData\Local\Microsoft\WindowsApps\python.exe 阅读全文
posted @ 2022-04-16 18:59 侬侬发 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-04-16 18:55 侬侬发 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 一、安装虚拟环境: 命令:pip3 install virtualenv 二、安装管理工具: 命令:pip3 install virtualenvwrapper 三、新建: 命令:python -m venv 虚拟环境名 或者 virtualenv 虚拟环境名 例如:PS E:\pyapp\pyte 阅读全文
posted @ 2022-04-16 17:43 侬侬发 阅读(465) 评论(0) 推荐(0) 编辑
摘要: 下载地址: https://www.python.org/ftp/python/3.10.4/python-3.10.4-amd64.exe 安装: C:\Users\liujun>python -V Python 3.10.4 阅读全文
posted @ 2022-04-16 17:31 侬侬发 阅读(566) 评论(0) 推荐(0) 编辑
摘要: django-admin startapp app01 或 python manage.py startapp app01 #app01 是app名称 PyCharm的样子: 阅读全文
posted @ 2022-04-16 16:07 侬侬发 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 命令:django-admin startproject mysite PS C:\Users\liujun> cd e:\pyapp\cmdbPS E:\pyapp\cmdb> django-admin startproject mysitePS E:\pyapp\cmdb> dir 目录: E: 阅读全文
posted @ 2022-04-16 15:55 侬侬发 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 安装: pip install Django 更新: pip3 install -U Django 或者 python -m pip install -U Django 查看: python -m django --version 或者 django-admin --version 阅读全文
posted @ 2022-04-16 14:43 侬侬发 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 摘自 金角大王 https://www.cnblogs.com/alex3714/articles/7131523.html Django rest framework介绍 Django REST framework is a powerful and flexible toolkit for bu 阅读全文
posted @ 2022-04-16 12:39 侬侬发 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 摘自:金角大王https://www.cnblogs.com/alex3714/articles/7550940.html 本节内容 编码回顾 编码转换 Python的bytes类型 编码回顾 在备编码相关的课件时,在知乎上看到一段关于Python编码的回答 这哥们的这段话说的太对了,搞Python 阅读全文
posted @ 2022-04-16 12:13 侬侬发 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 摘自:金角大王 https://www.cnblogs.com/alex3714/articles/5420433.html 本节内容 浅谈ITIL CMDB介绍 Django自定义用户认证 Restful 规范 资产管理功能开发 浅谈ITIL TIL即IT基础架构库(Information Tec 阅读全文
posted @ 2022-04-16 11:32 侬侬发 阅读(106) 评论(0) 推荐(0) 编辑