Mercurial > wikked
view backend.py @ 138:df04e6a875ba
Added Celery-powered background updates to wiki pages.
TODO: need to make it more customizable and optional.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 08 Dec 2013 12:51:58 -0800 |
parents | |
children | 87606db8c641 |
line wrap: on
line source
import logging from celery import Celery from utils import find_wiki_root logging.basicConfig(level=logging.DEBUG) app = Celery( 'wikked', broker='amqp://', backend='amqp://', include=['wikked.tasks']) if __name__ == '__main__': app.start()