aboutsummaryrefslogtreecommitdiffstats
path: root/modules/transifex/templates/20-engines.conf
blob: 620a955615b1f37c9daed8e01a2cb23f5c41f409 (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

# https://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