V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  shonky  ›  全部回复第 6 页 / 共 14 页
回复总数  277
1  2  3  4  5  6  7  8  9  10 ... 14  
@xpresslink 这个解决了,404 不见了。出现了这个 Not Found
The requested URL / was not found on this server.。
我不太知道创建了一个简单的 index.html,这个反解析要放在那里。
@Sanko Not Found
The requested URL / was not found on this server.
@xpresslink 这个东西加在<head ></head>中么
@xpresslink 谢谢了,确实是可以,没报错了,又出现个问题为啥不能正常显示 index.html.
@Sanko 谢谢,网页是可以打开了,可显示 404,
@princelai 不是这么 python manage.py startapp learning_logs 创建的么?
@Leigg 已谷歌解决,谢谢了。
@Leigg ModuleNotFoundError: No module named 'settings'
我按上面填的。加上路径也没用
@Leigg

django.core.exceptions.ImproperlyConfigured: Requested setting DEBUG, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.

Process finished with exit code 1
@pengtaochang 我是用 phcharm 创建的。为此还特意买了专业版的。
@Leigg 端口应该是没问题的。终端运行的端口也是 8000,可以正常用。就是在 pycharm 不能直接启动。要么代码报错,要么代码正常而页面不正常。
@owenliang 没用。不是梯子的原因。
@owenliang 我都是在有梯子情况下运行的。终端可以。那我等下试试。谢谢。
@VinKing 不能只设置成 manage py,会带有路径。
@rookiebulls 用的是 8000
忧伤,这个没人遇见过么
自己暧贴,等大佬解答下。
@4cat 不行的。
django.core.exceptions.ImproperlyConfigured: Requested setting DEBUG, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
这是显示的错误。
@jiezhi 终端可以运行,但我想在 Pycharm 直接运行,不知道是那的问题,参数按你说的,我也觉得是那样。但程序会报错,填别的,能运行,但没用。
1  2  3  4  5  6  7  8  9  10 ... 14  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2777 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 17ms · UTC 12:31 · PVG 20:31 · LAX 05:31 · JFK 08:31
Developed with CodeLauncher
♥ Do have faith in what you're doing.