Update for public https://habr.com/post/421887/
This commit is contained in:
+4
-7
@@ -27,13 +27,10 @@ formatter = logging.Formatter(app.config['LONG_LOG_FORMAT'])
|
||||
handler.setFormatter(formatter)
|
||||
app.logger.addHandler(handler)
|
||||
|
||||
# celery
|
||||
from celery import Celery
|
||||
# API
|
||||
from . import ns_api
|
||||
|
||||
celery = Celery(app.name,
|
||||
broker=app.config['CELERY_BROKER_URL'],
|
||||
backend=app.config['CELERY_RESULT_BACKEND'],
|
||||
include=['myapp.tasks'])
|
||||
celery.conf.update(app.config)
|
||||
# Пользователи
|
||||
from . import ns_user
|
||||
|
||||
from . import views
|
||||
|
||||
Reference in New Issue
Block a user