All in
zzjoey / leava Goto Github PK
View Code? Open in Web Editor NEW基于Flask + MySQL的在线请假微信小程序
License: Other
基于Flask + MySQL的在线请假微信小程序
License: Other
请问,Images&UI 为设计图和icon,logo 是用什么原件设计的?
求问api中ask_leave函数,插入数据库时,没有将leave_num插入,导致提交请假申请失败,求问解决方法
Originally posted by @RichardCRF in #10 (comment)
我是小白,看了楼主的介绍 还是不会搭建,请教应该如何 搭建啊, 我是小白,特别想试下大神的程序 啊,求指导,出个搭建教程,在此感谢了,谢谢
另外这个数据库我也不会修改,'mysql+mysqlconnector://user:passwd@IP:port/DB')这个不会改,能不能给个样例?
大哥,就是卡在登录 这了,获取不到数据库数据 ,返回的是0,不知道问题出在哪里?数据库我也照着你给的自己创建了,天啊,我到底该怎么办啊?
Request URL:http://127.0.0.1/login
Referrer Policy:no-referrer-when-downgrade
Request Headers
Provisional headers are shown
content-type:application/json
Origin:http://127.0.0.1:54496
Referer:http://127.0.0.1:54496/appservice/appservice?t=1562236750469?load
User-Agent:wechatdevtools appservice port/10069 token/c7aa8308f67ad7e123beccd32ae56d85
Request Payload
view source
{userId: "1", userPwd: "123"}
userId
:
"1"
userPwd
:
"123"
到底应该怎么处理啊?就是连接不进数据库里,哪里出现了问题?求指导下啊,哥
下载并安装MySQL,记住设置的MySQL密码(默认用户名root)
使用 init.sql 创建数据表,并插入demo数据
安装依赖
pip install flask mysql-connector pymysql sqlalchemy flask-SQLalchemy werkzeug
windows还需安装mysql-python 安装MySQL和Flask-SQLAlchemy
RESTful_backend.py 中修改第15行 配置数据库连接
例:用户名root,密码123456,数据库建立在本地,端口3306,数据库名为leava
mysql_connect_url = 'mysql+mysqlconnector://root:123456@localhost:3306/leava?auth_plugin=mysql_native_password'
在微信web开发者工具中新建小程序项目,选择空目录创建并复制粘贴 frontend 中文件
完成
学生:100000001, 100000002, 100000003
教师:100001, 100002
密码都是123456
大佬,前端安装了小程序工具,可以运行,但是无法登录,我在本地新建了数据库,但是后台文件是怎么运行的啊?是不是要安装python运行后台程序 ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.