You're accessing the development server over HTTPS, but it only supports HTTP.

核实django是否正确创建了项目:python manage.py runserver在这里插入图片描述
打开网页,输入rul,即图上的https://127.0.0.1:8000/
我是在Windows下运行的,会出现:You’re accessing the development server over HTTPS, but it only supports HTTP.的错误提示。
解决方法:首先安装django-sslserver.我这里使用了豆瓣源来下载(上一篇已提及),在这里插入图片描述
然后在settings里修改在这里插入图片描述
检查创建是否成功:python manage.py runserver在这里插入图片描述
打开网页,输入url,可以看见我这里已经成功了。

在这里插入图片描述

### JDK Internal JLine Utils Usage and Issues The `jdk.internal.org.jline.utils` package is part of the internal implementation details used by certain components within the Java Development Kit (JDK). This package primarily supports command-line interfaces through utilities that facilitate terminal interaction, including line editing, history management, and more sophisticated console features. #### Understanding JLine Utility Functions JLine provides a set of functionalities to enhance interactive applications running on Unix-like systems as well as Windows. The utility functions include: - **Terminal Handling**: Methods for detecting terminal capabilities and managing cursor movements. ```java import jdk.internal.org.jline.utils.TerminalBuilder; Terminal terminal = TerminalBuilder.builder().build(); ``` - **History Management**: Tools for maintaining previous input commands which can be recalled using keyboard shortcuts like up/down arrows. ```java import jdk.internal.org.jline.reader.History; History history = new MemoryHistory(); // In-memory storage for history ``` - **Prompt Customization**: Features allowing customization of prompts shown when waiting for user input from stdin. These tools are particularly useful in building REPLs (Read-Eval-Print Loops), shells, or any application requiring advanced CLI interactions beyond simple System.in/out operations[^1]. #### Common Issues with Using JLine Utilities Internally When working directly with these internal APIs, several challenges may arise due to their intended use being limited internally within the JDK itself rather than exposed publicly: - **API Stability**: Since this API resides under an "internal" namespace (`jdk.internal.*`), it might change between different versions without notice, leading to potential compatibility issues across various JDK releases. - **Limited Documentation**: Official documentation tends to focus less on internal packages compared to public-facing ones, making troubleshooting harder unless one dives deep into source code comments or community discussions. To mitigate such risks, developers should consider leveraging stable third-party libraries designed specifically for similar purposes instead of relying heavily upon unstable internal implementations whenever possible[^2]. --related questions-- 1. What alternatives exist outside the JDK for implementing robust command-line interface functionality? 2. How does the stability of internal JDK APIs compare against standard library offerings? 3. Can you provide examples where using official JLine distributions would offer advantages over accessing its classes via the JDK's internals?
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值