[![github](https://img.shields.io/badge/language-Django-yellow.svg)]()
[![github](https://img.shields.io/badge/build-Python-green.svg)]()
###在线演示环境
http://101.34.18.118:8002/
<br>(图片未压缩,所以加载有点慢)
这个不知道被谁用admin改密了,导致admin不能登录了了👀👀
##### 1. 学生端
学生账号:19001234
学生密码:xm123456
##### 2. 管理员端/教师端
管理员账号:admin
管理员密码:admin123
教师账号: x100x
教师密码: x100x123
### 运行环境
在Python3.7,Django2.2,MySQL8.0 版本下测试运行成功,windows,linux平台。
### 运行步骤
首先安装好运行环境,配置好python虚拟环境
```bash
1.安装requirements.txt依赖包(环境)
pip install -r requirements.txt
2.修改settings.py下的数据库配置
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
# 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
'NAME': 'lms',
'HOST': '127.0.0.1',
'PORT': '3306',
'USER': 'root',
'PASSWORD': 'root'
}
}
3.导入数据库文件lms.sql
python manage.py makemigrations
python manage.py migrate
#上面两步进行迁移,完成数据库表的建立
4.命令行输入
python manage.py runserver
#默认端口开在127.0.0.1:8000
PS:#创建超级管理员用户
python manage.py createsuperuser
5.然后浏览器打开localhost:8080/127.0.0.1:8000/进入管理系统
```
###页面展示
![image text](https://gitee.com/zcystart/chemlab/raw/master/lms/static/lms/example/pic/loginOfAll.jpg)
学生端
![image text](https://gitee.com/zcystart/chemlab/raw/master/lms/static/lms/example/pic/login.jpg)
![image text](https://gitee.com/zcystart/chemlab/raw/master/lms/static/lms/example/pic/about.jpg)
![image text](https://gitee.com/zcystart/chemlab/raw/master/lms/static/lms/example/pic/detail.jpg)
![image text](https://gitee.com/zcystart/chemlab/raw/master/lms/static/lms/example/pic/index.jpg)
![image text](https://gitee.com/zcystart/chemlab/raw/master/lms/static/lms/example/pic/lab.jpg)
![image text](https://gitee.com/zcystart/chemlab/raw/master/lms/static/lms/example/pic/register.jpg)
![image text](https://gitee.com/zcystart/chemlab/raw/master/lms/static/lms/example/pic/search.jpg)
![image text](https://gitee.com/zcystart/chemlab/raw/master/lms/static/lms/example/pic/userCentre.jpg)
![image text](https://gitee.com/zcystart/chemlab/raw/master/lms/static/lms/example/pic/usr_info.jpg)
![image text](https://gitee.com/zcystart/chemlab/raw/master/lms/static/lms/example/pic/borrow.jpg)
![image text](https://gitee.com/zcystart/chemlab/raw/master/lms/static/lms/example/pic/borrowHistory.jpg)
![image text](https://gitee.com/zcystart/chemlab/raw/master/lms/static/lms/example/pic/changePass.jpg)
管理端
![image text](https://gitee.com/zcystart/chemlab/raw/master/lms/static/lms/example/pic/adminlogin.jpg)
![image text](https://gitee.com/zcystart/chemlab/raw/master/lms/static/lms/example/pic/adminindex.jpg)
![image text](https://gitee.com/zcystart/chemlab/raw/master/lms/static/lms/example/pic/chart1.jpg)
![image text](https://gitee.com/zcystart/chemlab/raw/master/lms/static/lms/example/pic/chart2.jpg)
![image text](https://gitee.com/zcystart/chemlab/raw/master/lms/static/lms/example/pic/daochu.jpg)
![image text](https://gitee.com/zcystart/chemlab/raw/master/lms/static/lms/example/pic/bo.jpg)
![image text](https://gitee.com/zcystart/chemlab/raw/master/lms/static/lms/example/pic/predict.jpg)
###导入药品列表说明
文件 lms/static/lms/example/xls/Medicine-2022-01-27.xls
采用了开源的simpleui
<br>
<br>
<br>
<br>
<br>
<br/>
<br/>
2022-6-21更新
#错误提示
```
query = query.decode(errors='replace')
AttributeError: 'str' object has no attribute 'decode'
```
点击最后一条链接, 将decode改为encode
def last_executed_query(self, cursor, sql, params):
# With MySQLdb, cursor objects have an (undocumented) "_executed"
# attribute where the exact query sent to the database is saved.
# See MySQLdb/cursors.py in the source distribution.
query = getattr(cursor, '_executed', None)
if query is not None:
query = query.decode(errors='replace')
return query
query = query.encode(errors='replace')
```
可视化页面错误是近一个月没有借用药品导致,可以借用消除!
相关bug想自己修复到views.py里面predict函数进行修改
```
本项目停止维护,不再解答相关问题
没有合适的资源?快使用搜索试试~ 我知道了~
Python实现实验室药品管理和预警系统源码
共114个文件
jpg:26个
py:19个
html:19个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 27 浏览量
2023-12-20
23:53:55
上传
评论
收藏 4.61MB ZIP 举报
温馨提示
Python实验室药品管理和预警系统,具有学生端和管理员端,安装requirements.txt依赖包,修改settings.py下的数据库配置,导入数据库文件lms.sql,输入命令行后通过浏览器进入管理系统。
资源推荐
资源详情
资源评论
收起资源包目录
Python实现实验室药品管理和预警系统源码 (114个子文件)
bootstrap.min.css 141KB
usr_info.css 9KB
login.css 3KB
base.css 448B
about.css 164B
index.css 110B
browseHistory.css 109B
register.css 34B
detail.css 0B
userCentre.css 0B
subHistory.css 0B
华东理工大学突发危险化学品事件应急预案试行.doc 35KB
华东理工大学实验室工作条例.doc 21KB
.gitignore 3KB
.gitignore 117B
index.html 14KB
ins_index.html 12KB
error.html 9KB
base.html 7KB
chart1.html 5KB
predict.html 5KB
detail.html 4KB
lab.html 4KB
chart2.html 3KB
register.html 3KB
about.html 3KB
userCentre.html 3KB
login.html 2KB
borrowHistory.html 2KB
changePassword.html 2KB
ins_borrowHistory.html 2KB
loginOfAll.html 2KB
usr_info.html 1KB
temp.html 187B
LmsWeb.iml 1KB
uwsgi.ini 802B
1.jpg 2.36MB
loginOfAll.jpg 220KB
usr_info.jpg 170KB
predict.jpg 151KB
about.jpg 142KB
about.jpg 141KB
chart1.jpg 136KB
bo.jpg 134KB
borrowHistory.jpg 131KB
index.jpg 131KB
search.jpg 127KB
daochu.jpg 123KB
chart2.jpg 108KB
导入药品列表.jpg 108KB
borrow.jpg 107KB
adminindex.jpg 107KB
register.jpg 99KB
lab.jpg 97KB
detail.jpg 91KB
login.jpg 91KB
changePass.jpg 89KB
userCentre.jpg 81KB
adminlogin.jpg 68KB
dis_2.jpg 39KB
dis_3.jpg 37KB
dis_1.jpg 27KB
echarts.min.js 535KB
jquery-3.1.1.js 261KB
bootstrap.min.js 48KB
README.md 4KB
login.png 158KB
baseIcon.png 3KB
login1.png 2KB
views.py 24KB
0001_initial.py 6KB
settings.py 5KB
models.py 4KB
admin.py 3KB
urls.py 2KB
urls.py 1KB
forms.py 811B
manage.py 538B
wsgi.py 389B
apps.py 81B
__init__.py 71B
__init__.py 71B
__init__.py 71B
__init__.py 71B
tests.py 60B
__init__.py 43B
__init__.py 0B
__init__.py 0B
views.cpython-37.pyc 13KB
models.cpython-37.pyc 5KB
admin.cpython-37.pyc 3KB
0001_initial.cpython-37.pyc 3KB
settings.cpython-37.pyc 3KB
forms.cpython-37.pyc 1KB
urls.cpython-37.pyc 1KB
urls.cpython-37.pyc 1KB
manage.cpython-37.pyc 594B
wsgi.cpython-37.pyc 541B
apps.cpython-37.pyc 347B
__init__.cpython-37.pyc 186B
共 114 条
- 1
- 2
资源评论
python慕遥
- 粉丝: 2323
- 资源: 240
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功