惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

爱范儿
爱范儿
博客园_首页
W
WeLiveSecurity
S
Secure Thoughts
S
Security @ Cisco Blogs
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Hugging Face - Blog
Hugging Face - Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
H
Hacker News: Front Page
Project Zero
Project Zero
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
U
Unit 42
N
News and Events Feed by Topic
N
News and Events Feed by Topic
Hacker News - Newest:
Hacker News - Newest: "LLM"
Forbes - Security
Forbes - Security
T
Tor Project blog
I
Intezer
B
Blog
F
Full Disclosure
Security Archives - TechRepublic
Security Archives - TechRepublic
F
Fortinet All Blogs
Schneier on Security
Schneier on Security
T
Threat Research - Cisco Blogs
AI
AI
Google DeepMind News
Google DeepMind News
L
LINUX DO - 最新话题
Cloudbric
Cloudbric
L
Lohrmann on Cybersecurity
WordPress大学
WordPress大学
博客园 - 聂微东
雷峰网
雷峰网
P
Privacy International News Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
PCI Perspectives
PCI Perspectives
Y
Y Combinator Blog
Spread Privacy
Spread Privacy
Simon Willison's Weblog
Simon Willison's Weblog
罗磊的独立博客
Vercel News
Vercel News
A
Arctic Wolf
The Register - Security
The Register - Security
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Microsoft Azure Blog
Microsoft Azure Blog
H
Heimdal Security Blog
Know Your Adversary
Know Your Adversary
P
Proofpoint News Feed
C
Cybersecurity and Infrastructure Security Agency CISA
P
Proofpoint News Feed

Python on 老刘博客

Django部署在debian11服务器 用input和字典初步实现我的一点小想法
python开发web程序,最好还是在Linux下
老刘 · 2021-12-14 · via Python on 老刘博客

看了一些python教程,很多都是在windows下进行的开发,由于老刘对linux还算是有一丢丢的了解,所以从开始就在ubuntu下进行。前两天由于要在windows下用电脑,用完之后懒得重启,由于win10里也配置好了python的开发环境,所以就在win下写了一些代码。

写完之后,浏览器打开显示404错误,小心的查代码,也找不到错误的地方,明明有这个网页的模板,就是显示404,折腾了1个多小时。也每发现错误之处。后来实在是烦躁,干脆不搞了。

隔了一天,进入ubuntu,浏览器打开,还是显示404,这点没错,说明程序确实有问题,但是浏览器里给出了错误出在那一个文件,那一行。看了一下是把模板里的一个路由users写成了user了,然后就找不到user这个页面。就是这么点错误,在win下就是不给你详细的出错信息。

后来看了一下windows的文档,在里面也明确的说,开发python的web程序,建议使用linux。所以,新手朋友如果想学python,不妨先熟悉一下LINUX。其实也是蛮简单的。磨刀不误砍柴工。