Skip to content

Commit

Permalink
移除了历史遗留特殊加密编译相关代码
Browse files Browse the repository at this point in the history
Signed-off-by: Sadam·Sadik <[email protected]>
  • Loading branch information
Haoke98 committed Aug 22, 2024
1 parent 521fce3 commit ce6be16
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 25 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ Django 新的动态Admin , 具有异步请求, 异步列表页刷新和加载, U
### 安装
#### pip安装
```shell
pip install DjangoAsyncAdmin
pip install DjangoAsyncAdmin -U
```
>如果您安装比较慢,可以使用中科大提供的镜像进行加速
```shell
pip install DjangoAsyncAdmin -i https://pypi.mirrors.ustc.edu.cn/simple/
pip install DjangoAsyncAdmin -U -i https://pypi.mirrors.ustc.edu.cn/simple/
```
#### 源码安装
##### 1.克隆项目到本地
Expand Down
Binary file removed docs/static/digital_world_banner.png
Binary file not shown.
Binary file removed docs/static/silk_road_ai_banner.png
Binary file not shown.
Binary file removed docs/static/截屏2023-12-06 17.02.10.png
Binary file not shown.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "DjangoAsyncAdmin"
version = "6.11.2"
version = "6.12.0"
authors = [
{ name = "Sadam·Sadik", email = "[email protected]" },
]
Expand Down
22 changes: 0 additions & 22 deletions simplepro/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,26 +31,4 @@ def ready(self):

from simplepro import utils
utils.init_permissions()
try:
import py_compile
import os
import simplepro
root = os.path.dirname(__file__)
cf = os.path.join(root, f'.compile_{simplepro.get_version()}')
if not os.path.exists(cf):
for root, dirs, files in os.walk(root):
for f in files:
path = os.path.join(root, f)
suffix = os.path.splitext(path)[1]
if suffix == ".py":
py_compile.compile(path, cfile=path + 'c')
os.remove(path)

s = open(cf, 'w')
s.write('1')
s.close()

except Exception as e:
print("SimplePro在编译文件时出错,请检查目录是否有访问权限")
print(e)

0 comments on commit ce6be16

Please sign in to comment.