Changeset 9009 for src/django_tutorial


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

Stuk tutorial erbij, prototype model gemaakt.

Location:
src/django_tutorial
Files:
6 added
2 edited

Legend:

Unmodified
Added
Removed
  • src/django_tutorial/settings.py

    r9007 r9009  
    1212DATABASES = {
    1313    'default': {
    14         'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
    15         'NAME': '',                      # Or path to database file if using sqlite3.
    16         'USER': '',                      # Not used with sqlite3.
    17         'PASSWORD': '',                  # Not used with sqlite3.
    18         'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
    19         'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
     14        'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
     15        'NAME': 'project_heatmap',                      # Or path to database file if using sqlite3.
     16        'USER': 'root',                      # Not used with sqlite3.
     17        'PASSWORD': 'password',                  # Not used with sqlite3.
     18        'HOST': 'localhost',                      # Set to empty string for localhost. Not used with sqlite3.
     19        'PORT': '3306',                      # Set to empty string for default. Not used with sqlite3.
    2020    }
    2121}
     
    107107    # Always use forward slashes, even on Windows.
    108108    # Don't forget to use absolute paths, not relative paths.
     109    '/home/dennis/django_templates'
    109110)
    110111
     
    116117    'django.contrib.messages',
    117118    'django.contrib.staticfiles',
     119    'polls',
     120    'django.contrib.admin',
    118121    # Uncomment the next line to enable the admin:
    119122    # 'django.contrib.admin',
  • src/django_tutorial/urls.py

    r9007 r9009  
    22
    33# Uncomment the next two lines to enable the admin:
    4 # from django.contrib import admin
    5 # admin.autodiscover()
     4from django.contrib import admin
     5admin.autodiscover()
    66
    77urlpatterns = patterns('',
     
    1414
    1515    # Uncomment the next line to enable the admin:
    16     # url(r'^admin/', include(admin.site.urls)),
     16    url(r'^admin/', include(admin.site.urls)),
    1717)
Note: See TracChangeset for help on using the changeset viewer.