完善了首页和关于前端页面,以及解决了图片存储方案问题

This commit is contained in:
2026-10-20 04:53:06 +08:00
parent 16a75807ee
commit 7e45fa620e
20 changed files with 625 additions and 96 deletions
+15
View File
@@ -0,0 +1,15 @@
import urllib.parse
class UnicodeSlugConverter:
"""
支持中文 slug 的路径转换器
匹配除 / 之外的任意字符
"""
regex = '[^/]+'
def to_python(self, value):
return urllib.parse.unquote(value)
def to_url(self, value):
return urllib.parse.quote(value)