Published on March 13, 2024, 3:32 a.m.
在 Django 3.2 中,可以使用以下几种方法限制视图需要登录才能使用: **1. 使用 `@login_required` 装饰器:** ```python from django.contrib.auth.decorators im…
Continue Readingless
Published on March 13, 2024, 3:32 a.m.
在 Django 3.2 中,可以使用以下几种方法限制视图需要登录才能使用: **1. 使用 `@login_required` 装饰器:** ```python from django.contrib.auth.decorators im…
Continue ReadingPublished on March 10, 2024, 9:36 a.m.
生成一些水文,营销时候使用,不得不说这样做比搞什么伪原创来的靠谱多了。 以下是提示词举例 ``` 根据以上资料随便写一篇文章, 文章不少于1000字 ,要求语言丰富,风趣 不得添加任何未在提供资料中明确提及…
Continue ReadingPublished on March 10, 2024, 9:32 a.m.
在给模型提交背景资料时候,如何减少罗嗦无意义内容。 ``` --- 以上为背景资料,仅仅用于后续使用。 以上资料是介绍什么产品,请回答产品名称: ``` 或者 ``` --- 以上为背景资料,…
Continue ReadingPublished on Sept. 9, 2023, 11:50 a.m.
常用的软件备份 ## dpkg --get-selections adb install amdgpu-install install audacious install boswars install cpufrequtils in…
Continue ReadingPublished on Sept. 4, 2023, 2:40 p.m.
使用摩卡壶+电陶炉+天猫精灵+蓝牙插座实现自动化煮咖啡. 借助天猫精控制蓝牙插座的开关进而控制电陶炉的通电,进而控制摩卡壶的加热. ### 智能场景 在天猫精灵的手机应用智能场景添加如下命令 ``` 1. 每当语音指令"煮…
Continue ReadingPublished on Aug. 22, 2023, 1:53 p.m.
在 Django 的 admin 界面中,你可以通过在你的 `ModelAdmin` 类中定义一个方法,然后将这个方法的名称添加到 `actions` 列表中,来实现自定义的批量操作。 以下是一个简单的例子,假设你有一个 `Article` 模型,…
Continue ReadingPublished on Aug. 22, 2023, 12:02 p.m.
| | | | --- | --- | | | 額,什麼原因[View or comment on Terry Chen's post »](https://plus.google.com/_/notifications/emlink?emre…
Continue ReadingPublished on Aug. 22, 2023, 12:02 p.m.
| | | | --- | --- | | | Terry Chen与您分享了Yiding He的信息。说你行,你就行;说你不行,行也不行! | | | | | --- | --- | | | Yiding He@温心1…
Continue ReadingPublished on Aug. 22, 2023, 12:02 p.m.
Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: base64 PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURC…
Continue Reading