Ignore:
Timestamp:
Apr 6, 2011, 4:23:50 PM (14 years ago)
Author:
dennisw
Message:

django_gheat - werkt met database, transprancy gefixed

Location:
src/django_gheat/samples/persisted
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/samples/persisted/settings.py

    r9006 r9026  
    1313MANAGERS = ADMINS
    1414
    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.
     15DATABASES = {
     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}
    2125
    2226# Local time zone for this installation. Choices can be found here:
  • src/django_gheat/samples/persisted/templates/home.html

    r9006 r9026  
    1919        heatmap.getTileUrl = function (tile, zoom) {
    2020            base = 'http://127.0.0.1:8000/gheat/';
    21             color_scheme = 'firetrans';
     21            color_scheme = 'classic';
    2222            url = base + color_scheme +'/'+ zoom +'/'
    2323            url += tile.x +','+ tile.y +'.png';
Note: See TracChangeset for help on using the changeset viewer.