DATABASES = {'default':{
    'NAME':':memory:',
    'ENGINE':'django.db.backends.sqlite3'
}}

# install the bare minimum for
# testing django-brake
INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'brake',
)


# This is where our ratelimiting information is stored.
# Unfortunately, the DummyCache doesn't work for our purposes.
CACHE_BACKEND = 'memcached://127.0.0.1:11211/'

# point to ourselves as the root urlconf, define no patterns (see below)
ROOT_URLCONF = 'test_settings'

# set this to turn off an annoying "you're doing it wrong" message
SECRET_KEY = 'HAHAHA ratelimits!'

# turn this file into a pseudo-urls.py.
from django.conf.urls.defaults import *

urlpatterns = patterns('',)

DATABASES = {'default':{
    'NAME':':memory:',
    'ENGINE':'django.db.backends.sqlite3'
}}

# install the bare minimum for
# testing django-brake
INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'brake',
)


# This is where our ratelimiting information is stored.
CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'
    }
}
# Might be good to also test against real memcached.
#CACHE_BACKEND = 'memcached://127.0.0.1:11211/'

# point to ourselves as the root urlconf, define no patterns (see below)
ROOT_URLCONF = 'test_settings'

# set this to turn off an annoying "you're doing it wrong" message
SECRET_KEY = 'HAHAHA ratelimits!'

# turn this file into a pseudo-urls.py.
from django.conf.urls.defaults import *

urlpatterns = patterns('',)

Use LocMemCache instead of real memcache
Use LocMemCache instead of real memcache

  DATABASES = {'default':{
      'NAME':':memory:',
      'ENGINE':'django.db.backends.sqlite3'
  }}
  
  # install the bare minimum for
  # testing django-brake
  INSTALLED_APPS = (
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'brake',
  )
  
  
  # This is where our ratelimiting information is stored.
- # Unfortunately, the DummyCache doesn't work for our purposes.
+ CACHES = {
+     'default': {
+         'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'
+     }
+ }
+ # Might be good to also test against real memcached.
- CACHE_BACKEND = 'memcached://127.0.0.1:11211/'
+ #CACHE_BACKEND = 'memcached://127.0.0.1:11211/'
  
  # point to ourselves as the root urlconf, define no patterns (see below)
  ROOT_URLCONF = 'test_settings'
  
  # set this to turn off an annoying "you're doing it wrong" message
  SECRET_KEY = 'HAHAHA ratelimits!'
  
  # turn this file into a pseudo-urls.py.
  from django.conf.urls.defaults import *
  
  urlpatterns = patterns('',)
  
Use LocMemCache instead of real memcache
## Code Before:
DATABASES = {'default':{
    'NAME':':memory:',
    'ENGINE':'django.db.backends.sqlite3'
}}

# install the bare minimum for
# testing django-brake
INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'brake',
)


# This is where our ratelimiting information is stored.
# Unfortunately, the DummyCache doesn't work for our purposes.
CACHE_BACKEND = 'memcached://127.0.0.1:11211/'

# point to ourselves as the root urlconf, define no patterns (see below)
ROOT_URLCONF = 'test_settings'

# set this to turn off an annoying "you're doing it wrong" message
SECRET_KEY = 'HAHAHA ratelimits!'

# turn this file into a pseudo-urls.py.
from django.conf.urls.defaults import *

urlpatterns = patterns('',)

## Instruction:
Use LocMemCache instead of real memcache
## Code After:
DATABASES = {'default':{
    'NAME':':memory:',
    'ENGINE':'django.db.backends.sqlite3'
}}

# install the bare minimum for
# testing django-brake
INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'brake',
)


# This is where our ratelimiting information is stored.
CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'
    }
}
# Might be good to also test against real memcached.
#CACHE_BACKEND = 'memcached://127.0.0.1:11211/'

# point to ourselves as the root urlconf, define no patterns (see below)
ROOT_URLCONF = 'test_settings'

# set this to turn off an annoying "you're doing it wrong" message
SECRET_KEY = 'HAHAHA ratelimits!'

# turn this file into a pseudo-urls.py.
from django.conf.urls.defaults import *

urlpatterns = patterns('',)
