上传文件至 ''
|
@ -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
|
|
@ -0,0 +1,3 @@
|
||||||
|
@echo off
|
||||||
|
cd /d D:\112\document_management
|
||||||
|
python manage.py runserver 0.0.0.0:8000
|
After Width: | Height: | Size: 525 KiB |
After Width: | Height: | Size: 390 KiB |
After Width: | Height: | Size: 664 KiB |
After Width: | Height: | Size: 724 KiB |
After Width: | Height: | Size: 599 KiB |
After Width: | Height: | Size: 537 KiB |
After Width: | Height: | Size: 397 KiB |
After Width: | Height: | Size: 413 KiB |
After Width: | Height: | Size: 344 KiB |
After Width: | Height: | Size: 688 KiB |
|
@ -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即可,这个窗口不要关闭,让它一直运行
|
||||||
|
|
||||||
|
|
||||||
|
当然你也可以用脚本自动,我认为亲自动手还是比较好的
|