forked from OpenTreeMap/otm-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings_sandiego.py
executable file
·116 lines (87 loc) · 3.4 KB
/
settings_sandiego.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
import os
THUMBNAIL_DEBUG = False
THUMBNAIL_CACHE_TIMEOUT = 3600 * 24 * 365
GEOSERVER_URL = ''
GEOSERVER_GEO_LAYER = ''
GEOSERVER_GEO_STYLE = ''
TILECACHE_URL = 'sdtrees.beardedmaps.com/tilecache/tilecache.py/'
TILECACHE_LAYER = 'trees'
SITE_ROOT = ''
SITE = 'San Diego'
STATIC_URL = '/static/'
SITE_LOCATION = 'SanDiego'
PENDING_ON = False
REGION_NAME = 'San Diego'
#local_settings
GOOGLE_API_KEY = 'abcdf'
COMPLETE_ARRAY = ['species','condition','sidewalk_damage','powerline_conflict_potential','dbh','plot_width','plot_length','plot_type']
MAP_CLICK_RADIUS = .0015 # in decimal degrees
LOGIN_REDIRECT_URL = '/'
# 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/sandiego/'
STATIC_DATA = os.path.join(os.path.dirname(__file__), 'static/')
ADMINS = (
('Admin1', 'joshlivni@gmail.com'),
)
ROOT_URL = 'http://beardedmaps.com:8090'
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/')
CACHE_SEARCH_DISK_PATH = '/tmp/local_tiles/'
MAPNIK_STYLESHEET = os.path.join(os.path.dirname(__file__), 'mapserver/stylesheet.xml')
# sorl thumbnail settings
#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= 'contact@urbanforestmap.org'
EMAIL_MANAGERS = False
EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = 'treemap@umbrellaconsulting.com'
EMAIL_HOST_PASSWORD = 'treemap05'
EMAIL_PORT = 587
#http://sftrees.securemaps.com/ticket/236
CONTACT_EMAILS = ['joshlivni@gmail.com']#,'admins@urbanforestmap.org']
CACHE_BACKEND = 'file:///tmp/sandiego_cache'
DATABASES = {
'default': {
'NAME': 'sdtrees',
'ENGINE': 'django.contrib.gis.db.backends.postgis',
'USER': 'sftrees',
'PASSWORD': 'sftrees05',
'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 = '/media/'
# 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/SanDiego'),
os.path.join(os.path.dirname(__file__), 'templates'),
)