Changeset 9026 for src/django_gheat/samples/persisted
- Timestamp:
- Apr 6, 2011, 4:23:50 PM (14 years ago)
- Location:
- src/django_gheat/samples/persisted
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/django_gheat/samples/persisted/settings.py
r9006 r9026 13 13 MANAGERS = ADMINS 14 14 15 DATABASE_ENGINE = 'postgresql_psycopg2' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. 16 DATABASE_NAME = '' # Or path to database file if using sqlite3. 17 DATABASE_USER = '' # Not used with sqlite3. 18 DATABASE_PASSWORD = '' # Not used with sqlite3. 19 DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. 20 DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. 15 DATABASES = { 16 'default': { 17 'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. 18 'NAME': 'project_heatmap', # Or path to database file if using sqlite3. 19 'USER': 'root', # Not used with sqlite3. 20 'PASSWORD': 'password', # Not used with sqlite3. 21 'HOST': 'localhost', # Set to empty string for localhost. Not used with sqlite3. 22 'PORT': '3306', # Set to empty string for default. Not used with sqlite3. 23 } 24 } 21 25 22 26 # Local time zone for this installation. Choices can be found here: -
src/django_gheat/samples/persisted/templates/home.html
r9006 r9026 19 19 heatmap.getTileUrl = function (tile, zoom) { 20 20 base = 'http://127.0.0.1:8000/gheat/'; 21 color_scheme = ' firetrans';21 color_scheme = 'classic'; 22 22 url = base + color_scheme +'/'+ zoom +'/' 23 23 url += tile.x +','+ tile.y +'.png';
Note:
See TracChangeset
for help on using the changeset viewer.