Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Base celery configuration

  • Loading branch information...
commit c0c7e8080585536cc14de985577cae756165e5b7 1 parent 41667fe
Siddharta Govindaraj siddhi authored
4 epio.ini
View
@@ -44,3 +44,7 @@ base = make_my_badge
[env]
DJANGO_SETTINGS_MODULE = production_settings
+
+[celery]
+base = make_my_badge
+djcelery = true
7 make_my_badge/badge/tasks.py
View
@@ -0,0 +1,7 @@
+from celery.decorators import task
+
+print "loaded"
+
+@task()
+def add(x, y):
+ return x + y
19 make_my_badge/common_settings.py
View
@@ -16,16 +16,9 @@
MANAGERS = ADMINS
-# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
-# although not all choices may be available on all operating systems.
-# On Unix systems, a value of None will cause Django to use the same
-# timezone as the operating system.
-# If running in a Windows environment this must be set to the same as your
-# system time zone.
TIME_ZONE = 'America/Chicago'
-# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'en-us'
@@ -113,6 +106,7 @@
'django.contrib.staticfiles',
'django.contrib.admin',
'south',
+ 'djcelery',
'badge'
)
@@ -138,3 +132,14 @@
},
}
}
+
+# Celery configuration
+
+import djcelery
+djcelery.setup_loader()
+
+BROKER_HOST = "localhost"
+BROKER_PORT = 5672
+BROKER_USER = "admin"
+BROKER_PASSWORD = "admin"
+BROKER_VHOST = "make_my_badge"
10 requirements.txt
View
@@ -1,7 +1,15 @@
Django==1.3
+PIL==1.1.7
South==0.7.3
+amqplib==1.0.0
+anyjson==0.3.1
+celery==2.2.7
+django-celery==2.2.4
+django-picklefield==0.1.9
epio==0.2.8
httplib2==0.6.0
+kombu==1.2.1
+pyparsing==1.5.6
+python-dateutil==1.5
simplejson==2.1.6
virtualenv==1.6.4
-PIL==1.1.7
Please sign in to comment.
Something went wrong with that request. Please try again.