paicha / gxgk-wechat-server Goto Github PK
View Code? Open in Web Editor NEW校园微信公众号,使用 Python、Flask、Redis、MySQL、Celery [DEPRECATED]
License: MIT License
校园微信公众号,使用 Python、Flask、Redis、MySQL、Celery [DEPRECATED]
License: MIT License
看介绍 涉及到很多界面和功能 但是下载后发现只有两个界面和部分功能 能不能提供一个完整版或起码70-80%的版本 以便更好的学习 谢谢
作者你好,首先非常感谢您分享源码
我的部署环境是VM ubuntu,安装好mysql,redis 和依赖包(无错误)后,走到
from main.models import db
这一步时出现错误,错误如下
from main.models import db
Traceback (most recent call last):
File "", line 1, in
File "main/init.py", line 12, in
app.config.from_object('config')
File "/usr/local/lib/python2.7/dist-packages/flask/config.py", line 162, in from_object
obj = import_string(obj)
File "/usr/local/lib/python2.7/dist-packages/werkzeug/utils.py", line 443, in import_string
sys.exc_info()[2])
File "/usr/local/lib/python2.7/dist-packages/werkzeug/utils.py", line 418, in import_string
import(import_name)
werkzeug.utils.ImportStringError: import_string() failed for 'config'. Possible reasons are:
Debugged import:
Original exception:
ImportError: No module named config
希望得到帮助
reponse.py
16行使用全局变量message,在多线程情况下可能会导致线程安全问题,请问代码经过测试吗?
我把手动操作的db.create_all()方法放到route里面,写了一个/install的route,再启动服务然后访问localhost/install,调用是成功的,但是数据库表并没有创建起来。这是为什么呢?反之如果python命令行手动create就可以
整个项目好像没看到 数据库连接关闭的地方
是模拟登录还是学校开放了相关接口或者是学校给了数据库访问权限?
冒犯打扰, 我在运行程序的时候发生如下错误:
sqlalchemy.exc.ProgrammingError: (mysql.connector.errors.ProgrammingError) Failed processing pyformat-parameters; Python 'tuple' cannot be converted to a MySQL type.
我用的是MySQL引擎是: mysql-connetctor-python-rf==2.2.1
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.