Skip to content

Commit ce6be16

Browse files
committed
移除了历史遗留特殊加密编译相关代码
Signed-off-by: Sadam·Sadik <1903249375@qq.com>
1 parent 521fce3 commit ce6be16

File tree

6 files changed

+3
-25
lines changed

6 files changed

+3
-25
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ Django 新的动态Admin , 具有异步请求, 异步列表页刷新和加载, U
9494
### 安装
9595
#### pip安装
9696
```shell
97-
pip install DjangoAsyncAdmin
97+
pip install DjangoAsyncAdmin -U
9898
```
9999
>如果您安装比较慢,可以使用中科大提供的镜像进行加速
100100
```shell
101-
pip install DjangoAsyncAdmin -i https://pypi.mirrors.ustc.edu.cn/simple/
101+
pip install DjangoAsyncAdmin -U -i https://pypi.mirrors.ustc.edu.cn/simple/
102102
```
103103
#### 源码安装
104104
##### 1.克隆项目到本地

docs/static/digital_world_banner.png

-902 KB
Binary file not shown.

docs/static/silk_road_ai_banner.png

-1.17 MB
Binary file not shown.
-614 KB
Binary file not shown.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "DjangoAsyncAdmin"
3-
version = "6.11.2"
3+
version = "6.12.0"
44
authors = [
55
{ name = "Sadam·Sadik", email = "1903249375@qq.com" },
66
]

simplepro/apps.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -31,26 +31,4 @@ def ready(self):
3131

3232
from simplepro import utils
3333
utils.init_permissions()
34-
try:
35-
import py_compile
36-
import os
37-
import simplepro
38-
root = os.path.dirname(__file__)
39-
cf = os.path.join(root, f'.compile_{simplepro.get_version()}')
40-
if not os.path.exists(cf):
41-
for root, dirs, files in os.walk(root):
42-
for f in files:
43-
path = os.path.join(root, f)
44-
suffix = os.path.splitext(path)[1]
45-
if suffix == ".py":
46-
py_compile.compile(path, cfile=path + 'c')
47-
os.remove(path)
48-
49-
s = open(cf, 'w')
50-
s.write('1')
51-
s.close()
52-
53-
except Exception as e:
54-
print("SimplePro在编译文件时出错,请检查目录是否有访问权限")
55-
print(e)
5634

0 commit comments

Comments
 (0)