Skip to content

Commit

Permalink
Adding django-celery
Browse files Browse the repository at this point in the history
  • Loading branch information
lfalvarez committed Oct 28, 2013
1 parent c86f1ce commit c93868b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ django-registration
mimeparse
django-tastypie
django-pagination==1.0.5
django-celery
8 changes: 8 additions & 0 deletions votainteligente/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# Django settings for votainteligente project.
import os

import djcelery
djcelery.setup_loader()

DEBUG = True
TEMPLATE_DEBUG = DEBUG

Expand Down Expand Up @@ -157,6 +160,7 @@
# Uncomment the next line to enable the admin:
'django.contrib.admin',
'tinymce',
'djcelery'
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
)
Expand Down Expand Up @@ -226,6 +230,10 @@
},
}
}
#CELERY STUFF
BROKER_URL = 'amqp://guest:guest@localhost:5672/'
CELERYBEAT_SCHEDULER = 'djcelery.schedulers.DatabaseScheduler'

#django tinyMCE
TINYMCE_JS_URL = os.path.join(STATIC_URL, 'js/tiny_mce/tiny_mce.js')
TINYMCE_JS_ROOT = os.path.join(STATIC_URL, 'js/tiny_mce')
Expand Down

0 comments on commit c93868b

Please sign in to comment.