hopping up to celery 2.0.3
This commit is contained in:
Родитель
2391a51adc
Коммит
7439c02bf0
|
@ -52,6 +52,9 @@ setup_environ(settings)
|
|||
# pylint: disable-msg=W0611
|
||||
import log_settings
|
||||
|
||||
import djcelery
|
||||
djcelery.setup_loader()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
execute_manager(settings)
|
||||
|
|
|
@ -264,7 +264,7 @@ INSTALLED_APPS = (
|
|||
'cake',
|
||||
|
||||
# Third party apps
|
||||
'celery',
|
||||
'djcelery',
|
||||
'django_nose',
|
||||
'piston',
|
||||
|
||||
|
|
|
@ -5,6 +5,9 @@ from datetime import datetime
|
|||
# Remember when mod_wsgi loaded this file so we can track it in nagios.
|
||||
wsgi_loaded = datetime.now()
|
||||
|
||||
# Tell celery that we're using Django.
|
||||
os.environ['CELERY_LOADER'] = 'django'
|
||||
|
||||
# Add the zamboni dir to the python path so we can import manage.
|
||||
wsgidir = os.path.dirname(__file__)
|
||||
site.addsitedir(os.path.abspath(os.path.join(wsgidir, '../')))
|
||||
|
|
Загрузка…
Ссылка в новой задаче