Commits

ronald martinez committed 4fde6fd

confs

Comments (0)

Files changed (3)

+from celery.schedules import crontab
+
+import settings
+
+CELERY_IMPORTS = ('tasks',)
+BROKER_TRANSPORT = 'sqs'
+BROKER_TRANSPORT_OPTIONS = {
+    'region': 'us-east-1',
+}
+
+CELERY_SEND_TASK_SENT_EVENT = 1
+
+BROKER_URL = 'sqs://%s:%s@' % (settings.AWS_KEY, settings.AWS_SECRET) 
+
+print BROKER_URL
+
+#BROKER_USER = settings.AWS_KEY
+#BROKER_PASSWORD = settings.AWS_SECRET
+
+CELERYBEAT_SCHEDULE = {
+    "generate_thumbs": {
+        'task': "generate_thumbs",
+        'schedule': crontab(minute="*/1"),
+    }
+}

local_settings.py

+DEBUG = True
+DOMAIN_URL = "http://vuulo.lab.pe"
+
+AWS_KEY = 'AKIAIAJCEPRGOJRZ2VNA'
+AWS_SECRET = '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'
+AWS_EMAIL_FROM = 'm4cf1.server@gmail.com'
+AWS_UPLOAD_PATH = 'upload-images'
+
+S3_IMAGES_URL = 's3.amazonaws.com'
+S3_BUCKET_NAME = 'upload-images'
+
+FACEBOOK_API_KEY = '417148998324988'
+FACEBOOK_SECRET = 'e67a2a12e81447014a9fb3d693ed432d'
+
+S3_UPLOAD_PATH_PRODUCT = 'products'
+S3_UPLOAD_PATH_PRODUCT_API = 'products/api'
+
+S3_UPLOAD_URL_PRODUCT = 'http://%s.%s/%s/' % (
+    S3_BUCKET_NAME, S3_IMAGES_URL, S3_UPLOAD_PATH_PRODUCT)
 PIL==1.1.7
 Paste==1.7.5.1
 amqplib==1.0.2
-anyjson==0.3.1
+anyjson==0.3.3
+billiard==2.7.3.10
 boto==2.4.1
-celery==2.5.3
+celery==3.0.4
+flower==0.2.0
 httplib2==0.7.4
-kombu==2.1.8
+ipython==0.12.1
+kombu==2.3.0
 python-dateutil==1.5
 python-magic==0.4.2
 -e git+https://github.com/fernandoflorez/python-simpledb@5f16b3b8df5f32f12bfb336d12b9dbdacb3dda67#egg=simpledb-dev