Commit dd2c0104 authored by lixiaofang's avatar lixiaofang

add

parent 53956d9d
......@@ -4,4 +4,4 @@ import pymysql
from _celery import app as celery_app
pymysql.install_as_MySQLdb()
#__all__ = ('celery_app',)
__all__ = ('celery_app',)
......@@ -22,3 +22,6 @@ app.conf.broker_url = settings.CELERY_BROKER_URL
@app.task(bind=True)
def debug_task(self):
print('Request: {0!r}'.format(self.request))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment