コード例 #1
0
#encoding:utf-8
from flask import Flask
import config
from flask_rabbitmq import Queue, RabbitMQ

app = Flask(__name__)
app.config.from_object(config)

queue = Queue()
rpc = RabbitMQ(app, queue)

from app import views,demo
コード例 #2
0
#encoding:utf-8
import config
from flask import Flask
from flask_rabbitmq import RabbitMQ, Queue

app = Flask(__name__)
app.config.from_object(config)

queue = Queue()
mq = RabbitMQ(app, queue)

from app import views, demo