forked from geodesign/django-raster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.py
37 lines (30 loc) · 797 Bytes
/
settings.py
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
34
35
36
37
"""
Settings for django-raster tests.
"""
from __future__ import unicode_literals
import os
SECRET_KEY = 'testkey'
INSTALLED_APPS = (
'raster',
)
DATABASES = {
'default': {
'ENGINE': 'django.contrib.gis.db.backends.postgis',
'USER': os.environ.get('DB_USER', 'postgres'),
'HOST': os.environ.get('DB_HOST', 'localhost'),
'NAME': os.environ.get('DB_NAME', 'postgres'),
'PASSWORD': os.environ.get('DB_PASSWORD', ''),
'PORT': os.environ.get('DB_PORT', '5432')
}
}
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'APP_DIRS': True,
},
]
ROOT_URLCONF = 'raster.urls'
RASTER_TILESIZE = 256
RASTER_USE_CELERY = True
CELERY_ALWAYS_EAGER = True
CELERY_EAGER_PROPAGATES_EXCEPTIONS = True