上传文件至 ''

This commit is contained in:
kohler 2023-08-31 02:50:46 +00:00
parent 849d0fd28c
commit 98c38e7b6f
15 changed files with 26 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,9 @@
@echo off
echo Upgrading pip...
python -m pip install --upgrade pip
echo Installing Django...
pip install django
echo Installing docx2pdf...
pip install docx2pdf
echo Installation completed.
pause

View File

@ -0,0 +1,3 @@
@echo off
cd /d D:\112\document_management
python manage.py runserver 0.0.0.0:8000

Binary file not shown.

After

Width:  |  Height:  |  Size: 525 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 390 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 664 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 724 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 599 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 537 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 397 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 413 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 344 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 688 KiB

View File

@ -0,0 +1,14 @@
#这是文字说明,还有一个图片说明文档
1、把下载下来的压缩包(112.rar)直接解压到D盘根目录D盘根目录是什么自行百度
2、先安装压缩包内的python环境python-3.10.4-amd64.exe
3、安装好后再升级pip包管理工具以管理员方式打开CMD命令窗口输入python -m pip install --upgrade pip等待升级完成
4、安装Django框架库在CMD命令窗口输入pip install Django等待安装完成
5、安装docx2pdf库支持在线预览word,命令是pip install docx2pdf等待安装完成
5、修改IP地址很重要不然只有你可以访问内网其它用户无法访问
5.1、打开解压之后的D:\112\document_management\document_management\settings.py右键选择其它方式打开选择TXT文本格式
5.2、找到ALLOWED_HOSTS = ['192.168.0.105', 'localhost', '127.0.0.1']这一行把192.168.0.105改成你现在这台电脑的IP保存即可
6、CMD命令窗口进入项目根目录一般是这样的D:\112\document_management
7、启动服务在根目录下输入python manage.py runserver 0.0.0.0:8000即可这个窗口不要关闭让它一直运行
当然你也可以用脚本自动,我认为亲自动手还是比较好的