devplus.py 1.05 KB
Newer Older
1 2 3
"""
This config file tries to mimic the production environment more closely than the
normal dev.py. It assumes you're running a local instance of MySQL 5.1 and that
4 5
you're running memcached. You'll want to use this to test caching and database
migrations.
6 7 8 9 10 11 12 13 14

Assumptions:
* MySQL 5.1 (version important -- askbot breaks on 5.5)

Dir structure:
/envroot/
        /mitx # The location of this repo
        /log  # Where we're going to write log files

15
"""
16
from dev import *
17 18 19

DATABASES = {
    'default': {
20 21 22 23 24 25
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'wwc',
        'USER': 'root',
        'PASSWORD': '',
        'HOST': '127.0.0.1',
        'PORT': '3306',
26 27 28 29 30 31 32
    }
}

CACHES = {
   'default': {
       'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
       'LOCATION': '127.0.0.1:11211',
33
   },
34 35 36 37
   'general': {
       'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
       'LOCATION': '127.0.0.1:11211',
       'KEY_PREFIX' : 'general',
38
       'VERSION' : 5,
39
   }
40 41 42
}

SESSION_ENGINE = 'django.contrib.sessions.backends.cache'