forked from OpenTreeMap/otm-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings_sanfrancisco.py
executable file
·95 lines (69 loc) · 2.81 KB
/
settings_sanfrancisco.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
import os
SITE_LOCATION = 'SanFrancisco'
PENDING_ON = False
#local_settings
GOOGLE_API_KEY = 'abcdf'
COMPLETE_ARRAY = ['species','condition','sidewalk_damage','powerline_conflict_potential','dbh','plot_width','plot_length','plot_type']
# must end with trees/ because of odd tilecache deployment issue
# will be populated with layer name /trees/{layername} dynamically
# in javascript depending on the google base layer being used
TC_URL = 'http://tilecache.urbanforestmap.org/tiles/1.0.0/trees/'
STATIC_DATA = os.path.join(os.path.dirname(__file__), 'static/')
ADMINS = (
('Admin1', '[email protected]'),
)
ROOT_URL = 'http://urbanforestmap.org'
TILED_SEARCH_RESPONSE = False
# separate instance of tilecache for dynamic selection tiles
CACHE_SEARCH_TILES = True
CACHE_SEARCH_METHOD = 'disk' #'disk'
CACHE_SEARCH_DISK_PATH = os.path.join(os.path.dirname(__file__), 'local_tiles/')
MAPNIK_STYLESHEET = os.path.join(os.path.dirname(__file__), 'mapserver/stylesheet.xml')
# sorl thumbnail settings
THUMBNAIL_DEBUG = True
THUMBNAIL_SUBDIR = '_thumbs'
#THUMBNAIL_EXTENSION = 'png'
#THUMBNAIL_QUALITY = 95 # if not using png
MANAGERS = ADMINS
# django-registration
REGISTRATION_OPEN = True # defaults to True
ACCOUNT_ACTIVATION_DAYS = 5
DEFAULT_FROM_EMAIL= '[email protected]'
EMAIL_MANAGERS = False
#http://sftrees.securemaps.com/ticket/236
CONTACT_EMAILS = ['[email protected]']#,'[email protected]']
CACHE_BACKEND = 'file:///tmp/trees_cache'
DATABASES = {
'default': {
'NAME': 'sftrees',
'ENGINE': 'django.contrib.gis.db.backends.postgis',
'USER': 'sftrees',
'PASSWORD': '12345',
'HOST': 'sajara01',
'PORT': '5432',
}
}
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# If running in a Windows environment this must be set to the same as your
# system time zone.
TIME_ZONE = 'America/Vancouver'
SITE_ID = 1
# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'media/')
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash if there is a path component (optional in other cases).
# Examples: "http://media.lawrence.com", "http://example.com/media/"
MEDIA_URL = ''
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
# Examples: "http://foo.com/media/", "/media/".
ADMIN_MEDIA_PREFIX = '/admin_media/'
ADMIN_MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'admin_media/')
# Make this unique, and don't share it with anybody.
SECRET_KEY = 'insecure'
TEMPLATE_DIRS = (
os.path.join(os.path.dirname(__file__), 'templates/SanFrancisco'),
)