Index: src/django_tutorial/polls/admin.py
===================================================================
--- src/django_tutorial/polls/admin.py	(revision 9009)
+++ src/django_tutorial/polls/admin.py	(revision 9009)
@@ -0,0 +1,20 @@
+from polls.models import Poll, Choice
+from django.contrib import admin
+
+class ChoiceInline(admin.TabularInline):
+	model = Choice
+	extra = 3
+
+class PollAdmin(admin.ModelAdmin):
+	fieldsets = [
+		(None, {'fields': ['question']}),
+		('Date information', {'fields': ['pub_date'], 'classes': ['collapse']}),
+	]
+	inlines = [ChoiceInline]
+	list_display = ('question', 'pub_date', 'was_published_today')
+	list_filter = ['pub_date']
+	search_fields = ['question']
+	date_hierarchy = 'pub_date'
+
+admin.site.register(Poll, PollAdmin)
+
Index: src/django_tutorial/polls/models.py
===================================================================
--- src/django_tutorial/polls/models.py	(revision 9009)
+++ src/django_tutorial/polls/models.py	(revision 9009)
@@ -0,0 +1,19 @@
+from django.db import models
+import datetime
+
+class Poll(models.Model):
+	question = models.CharField(max_length=200)
+	pub_date = models.DateTimeField('date published')
+	def __unicode__(self):
+		return self.question
+	def was_published_today(self):
+		return self.pub_date.date() == datetime.date.today()
+	was_published_today.short_description = 'Published today?'
+
+class Choice(models.Model):
+	poll = models.ForeignKey(Poll)
+	choice = models.CharField(max_length=200)
+	votes = models.IntegerField()
+	def __unicode__(self):
+		return self.choice
+
Index: src/django_tutorial/polls/tests.py
===================================================================
--- src/django_tutorial/polls/tests.py	(revision 9009)
+++ src/django_tutorial/polls/tests.py	(revision 9009)
@@ -0,0 +1,16 @@
+"""
+This file demonstrates writing tests using the unittest module. These will pass
+when you run "manage.py test".
+
+Replace this with more appropriate tests for your application.
+"""
+
+from django.test import TestCase
+
+
+class SimpleTest(TestCase):
+    def test_basic_addition(self):
+        """
+        Tests that 1 + 1 always equals 2.
+        """
+        self.assertEqual(1 + 1, 2)
Index: src/django_tutorial/polls/views.py
===================================================================
--- src/django_tutorial/polls/views.py	(revision 9009)
+++ src/django_tutorial/polls/views.py	(revision 9009)
@@ -0,0 +1,1 @@
+# Create your views here.
Index: src/django_tutorial/settings.py
===================================================================
--- src/django_tutorial/settings.py	(revision 9007)
+++ src/django_tutorial/settings.py	(revision 9009)
@@ -12,10 +12,10 @@
 DATABASES = {
     'default': {
-        'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
-        'NAME': '',                      # Or path to database file if using sqlite3.
-        'USER': '',                      # Not used with sqlite3.
-        'PASSWORD': '',                  # Not used with sqlite3.
-        'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
-        'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
+        'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
+        'NAME': 'project_heatmap',                      # Or path to database file if using sqlite3.
+        'USER': 'root',                      # Not used with sqlite3.
+        'PASSWORD': 'password',                  # Not used with sqlite3.
+        'HOST': 'localhost',                      # Set to empty string for localhost. Not used with sqlite3.
+        'PORT': '3306',                      # Set to empty string for default. Not used with sqlite3.
     }
 }
@@ -107,4 +107,5 @@
     # Always use forward slashes, even on Windows.
     # Don't forget to use absolute paths, not relative paths.
+    '/home/dennis/django_templates'
 )
 
@@ -116,4 +117,6 @@
     'django.contrib.messages',
     'django.contrib.staticfiles',
+    'polls',
+    'django.contrib.admin',
     # Uncomment the next line to enable the admin:
     # 'django.contrib.admin',
Index: src/django_tutorial/urls.py
===================================================================
--- src/django_tutorial/urls.py	(revision 9007)
+++ src/django_tutorial/urls.py	(revision 9009)
@@ -2,6 +2,6 @@
 
 # Uncomment the next two lines to enable the admin:
-# from django.contrib import admin
-# admin.autodiscover()
+from django.contrib import admin
+admin.autodiscover()
 
 urlpatterns = patterns('',
@@ -14,4 +14,4 @@
 
     # Uncomment the next line to enable the admin:
-    # url(r'^admin/', include(admin.site.urls)),
+    url(r'^admin/', include(admin.site.urls)),
 )
