一个基于Flask的bbs论坛类项目 前端有用户和管理员两套界面
生产环境启动命令:
gunicorn -w 8 -k gevent --log-level warning -b 0.0.0.0:8000 prod_run:app
flask vue 驱动的bbs程序
License: GNU General Public License v3.0
`
(super-bbs) ~/code/super-bbs >>> export FLASK_APP=super_bbs/app.py
(super-bbs) ~/code/super-bbs >>> flask run
Error: While importing "super_bbs.app", an ImportError was raised:
Traceback (most recent call last):
File "/home/peng/code/super-bbs/lib/python3.8/site-packages/flask/cli.py", line 240, in locate_app
import(module_name)
File "/home/peng/code/super-bbs/super_bbs/app.py", line 4, in
from super_bbs.core.extensions import db, migrate, mail, session, celery, redis_store
File "/home/peng/code/super-bbs/super_bbs/core/extensions.py", line 5, in
from celery import Celery
ImportError: cannot import name 'Celery' from 'celery' (/home/peng/code/super-bbs/lib/python3.8/site-packages/celery/init.py)
(super-bbs) ~/code/super-bbs >>>
`
@lgphone
你好,我正在学习您的代码,运行的时候出现了上面的问题,但我明明已经安装了requirement.txt中的Celery了
于是命令行测试:
`
(super-bbs) ~/code/super-bbs >>> python
Python 3.8.6 (default, Sep 30 2020, 04:00:38)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
import celery
from celery import Celery
Traceback (most recent call last):
File "", line 1, in
ImportError: cannot import name 'Celery' from 'celery' (/home/peng/code/super-bbs/lib/python3.8/site-packages/celery/init.py)
`
感谢!
py3.8, py3.5, py2.7都试过了
还是要请教一下,开发所用的python版本是多少?
请问该项目的数据库表结构DDL能够公开分享吗?
对小白选手来说,想下来跑下看看效果,完全不懂如何操作啊,大师,doc 文件夹里的图片看不到效果啊
非常感谢
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.