aboutsummaryrefslogtreecommitdiffstats
path: root/modules/transifex/templates/20-engines.conf
blob: 13eb03348de699ce4c4b6f6c84f5d05721bd994f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
### ENGINE CONFIGURATION
# Database and caching

## Database configuration

# http://docs.djangoproject.com/en/dev/ref/settings/#database-engine
DATABASE_ENGINE = 'postgresql_psycopg2'
# Use file path for sqlite3
DATABASE_NAME = 'transifex'
# The following are not used for sqlite3
DATABASE_USER = 'transifex'
DATABASE_PASSWORD = '<%= pgsql_password %>'
DATABASE_HOST = 'pgsql.<%= domain %>'           # Set to empty string for local socket
DATABASE_PORT = ''             # Set to empty string for default

## Caching (optional)

CACHE_BACKEND = 'locmem://'
# For memcached: CACHE_BACKEND = 'memcached://127.0.0.1:11211/'
# No caching: CACHE_BACKEND = 'dummy://'

CACHE_MIDDLEWARE_SECONDS = 3600
CACHE_MIDDLEWARE_KEY_PREFIX = 'tx'
CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True

# Note: Additional caching configuration takes place in 50-project.conf in the
# MIDDLEWARE_CLASSES option.

# Database settings for unittests
TEST_CHARSET = "utf8"
TEST_COLLATION = "utf8_general_ci"
TEST_DATABASE_CHARSET = TEST_CHARSET
TEST_DATABASE_COLLATION = TEST_COLLATION