From 6dd6a06012218f6cd54c33485b6320c9b7a87608 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Tue, 15 Nov 2011 15:55:15 +0100 Subject: [PATCH] piwik --- apps/poetry/templates/poetry/poem.html | 1 + turniej/settings.py | 4 +++- turniej/templates/base.html | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/poetry/templates/poetry/poem.html b/apps/poetry/templates/poetry/poem.html index b6b0ab7..f6a13e2 100644 --- a/apps/poetry/templates/poetry/poem.html +++ b/apps/poetry/templates/poetry/poem.html @@ -78,6 +78,7 @@ +{{ piwik_tag|safe }} diff --git a/turniej/settings.py b/turniej/settings.py index 97fa8da..8687ba1 100644 --- a/turniej/settings.py +++ b/turniej/settings.py @@ -101,6 +101,7 @@ MIDDLEWARE_CLASSES = [ #'django.middleware.csrf.CsrfViewMiddleware', #'django.contrib.auth.middleware.AuthenticationMiddleware', #'django.contrib.messages.middleware.MessageMiddleware', + 'piwik.django.middleware.PiwikMiddleware', ] ROOT_URLCONF = 'turniej.urls' @@ -116,7 +117,7 @@ INSTALLED_APPS = [ #'django.contrib.auth', #'django.contrib.contenttypes', #'django.contrib.sessions', - #'django.contrib.sites', + 'django.contrib.sites', #'django.contrib.messages', 'django.contrib.staticfiles', @@ -124,6 +125,7 @@ INSTALLED_APPS = [ # 'django.contrib.admindocs', 'south', + 'piwik.django', 'poetry', ] diff --git a/turniej/templates/base.html b/turniej/templates/base.html index e66d03d..273547b 100644 --- a/turniej/templates/base.html +++ b/turniej/templates/base.html @@ -30,6 +30,7 @@ +{{ piwik_tag|safe }} -- 2.20.1