This commit is contained in:
pycook 2019-12-12 21:45:19 +08:00
parent e129b0a32e
commit 13e9a0b7bd
5 changed files with 3 additions and 4 deletions

2
.env
View File

@ -4,4 +4,4 @@ FLASK_DEBUG=1
FLASK_ENV=development
GUNICORN_WORKERS=2
LOG_LEVEL=debug
SECRET_KEY='YourSecretKey'
SECRET_KEY='<YourSecretKey>'

View File

@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-
"""Create an application instance."""
from flask import g
from flask_login import current_user

View File

@ -3,7 +3,7 @@
from api.app import create_app
from api.extensions import celery
# celery worker -A celery_worker.celery -l DEBUG -E -Q <queue_name>
# celery worker -A celery_worker.celery -l DEBUG -E -Q <queue_name> --concurrency=1
print(celery)
app = create_app()

View File

@ -4,6 +4,7 @@ max-line-length = 120
exclude = migrations/*
max-complexity = 10
[isort]
line_length = 88
multi_line_output = 3

View File

@ -1,2 +1 @@
# -*- coding: utf-8 -*-
"""Tests for the app."""