comparison gpp/settings/test.py @ 522:82b97697312e

Created Celery tasks to process new posts and topics. Keep the updated topic set in Redis. This is for tickets #194, #237, #239.
author Brian Neal <bgneal@gmail.com>
date Sun, 18 Dec 2011 23:46:52 +0000
parents 1a09a7bea000
children
comparison
equal deleted inserted replaced
521:dd14ab08a9c4 522:82b97697312e
1 """ 1 """
2 Settings to use when running tests. Uses sqlite for speed. 2 Settings to use when running tests. Uses sqlite for speed.
3 3
4 """ 4 """
5 from settings.base import * 5 from settings.base import *
6
7 # Use a different database in Redis for tests
8 REDIS_DB = 14
9 QUEUE_REDIS_DB = 14
10 BROKER_URL = 'redis://localhost:6379/15'
11 CELERY_REDIS_DB = 15
6 12
7 DATABASES = { 13 DATABASES = {
8 'default': { 14 'default': {
9 'ENGINE': 'django.db.backends.sqlite3', 15 'ENGINE': 'django.db.backends.sqlite3',
10 'NAME': 'dev.db', 16 'NAME': 'dev.db',