1. 创建 requirements.txt 文件
进入项目根目录
cd /home/chen/mydjango
创建 requirements.txt 文件
pip3 freeze > requirements.txt
查看生成的文件
cat requirements.txt
text
Markdown==3.5.1
Django==4.2.0
sqlite3
redis==4.5.0
#...
发布函数
```html
function publish_article() {
var title = $("#id_title").val();
var column_id = $("#which_column").val();
var body = $("#id_body").val();
var article_ta...
1. 安装Redis数据库
Linux系统安装:
启动虚拟环境(不启动可能得安装个别依赖软件)
source venv/bin/activate
Ubuntu/Debian
sudo apt update
sudo apt install redis-server
CentOS/RHEL
sudo yum install redis
或
sudo dnf install redis
2. 启动Re...
什么是 Markdown?
Markdown 是一种轻量级标记语言,你可以使用它向纯文本文档添加格式元素。Markdown 由 John Gruber 于 2004 年创建,现在是世界上最流行的标记语言之一。
使用 Markdown 与使用 WYSIWYG 编辑器不同。在 Microsoft Word 等应用程序中,你可以单击按钮来设置单词和短语的格式,并且更改会立即显示。Markdown 并非如...
./article/views.py
from django.shortcuts import render
from django.contrib.auth.decorators import login_required
from django.views.decorators.csrf import csrf_exempt
from django.views....