Commits

Viliam Segeda committed 830ce22

installed django-rq

Comments (0)

Files changed (3)

         'simple': {
             'format': '%(levelname)s %(message)s'
         },
+        "rq_console": {
+            "format": "%(asctime)s %(message)s",
+            "datefmt": "%H:%M:%S",
+        },
     },
     'handlers': {
         'null': {
             'class': 'logging.StreamHandler',
             'formatter': 'simple'
         },
+        "rq_console": {
+            "level": "DEBUG",
+            "class": "rq.utils.ColorizingStreamHandler",
+            "formatter": "rq_console",
+            "exclude": ["%(asctime)s"],
+        },
         'mail_admins': {
             'level': 'ERROR',
             'filters': ['require_debug_false'],
         'report_image': {
             'handlers': ['console'],
             'level': 'INFO',
-        }
+        },
+        "rq.worker": {
+            "handlers": ["rq_console"],
+            "level": "DEBUG"
+        },
     }
 }
     'post_office',
     'geoposition',
     'dbbackup',
+    "django_rq",
     #'taggit'
 )
 
 FILE_UPLOAD_PERMISSIONS = 0644
 
 ###################
+# redis
+###################
+
+RQ_QUEUES = {
+    'default': {
+        'HOST': 'localhost',
+        'PORT': 6379,
+        'DB': 0,
+        #'PASSWORD': '',
+    },
+}
+###################
 # DEPLOY SETTINGS #
 ###################
 
     url(r'^api/', include('api.urls')),
     url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
     url(r'^runporter/', include('runporter.urls')),
-
+    url(r'^rq/', include('django_rq.urls')),
+    
     # reports urls
     #("^", include("reports.urls")),
     url(r'^(?P<country_id>[\w-]+)/news/', include("reports.urls")),