corrections
[turniej.git] / turniej / settings.py
index 62a66e5..a05bb68 100644 (file)
@@ -35,13 +35,13 @@ TIME_ZONE = None
 
 # Language code for this installation. All choices can be found here:
 # http://www.i18nguy.com/unicode/language-identifiers.html
 
 # Language code for this installation. All choices can be found here:
 # http://www.i18nguy.com/unicode/language-identifiers.html
-#LANGUAGE_CODE = 'pl'
+LANGUAGE_CODE = 'pl'
 
 SITE_ID = 1
 
 # If you set this to False, Django will make some optimizations so as not
 # to load the internationalization machinery.
 
 SITE_ID = 1
 
 # If you set this to False, Django will make some optimizations so as not
 # to load the internationalization machinery.
-#USE_I18N = True
+USE_I18N = True
 
 # If you set this to False, Django will not format dates, numbers and
 # calendars according to the current locale
 
 # If you set this to False, Django will not format dates, numbers and
 # calendars according to the current locale
@@ -101,6 +101,7 @@ MIDDLEWARE_CLASSES = [
     #'django.middleware.csrf.CsrfViewMiddleware',
     #'django.contrib.auth.middleware.AuthenticationMiddleware',
     #'django.contrib.messages.middleware.MessageMiddleware',
     #'django.middleware.csrf.CsrfViewMiddleware',
     #'django.contrib.auth.middleware.AuthenticationMiddleware',
     #'django.contrib.messages.middleware.MessageMiddleware',
+    'piwik.django.middleware.PiwikMiddleware',
 ]
 
 ROOT_URLCONF = 'turniej.urls'
 ]
 
 ROOT_URLCONF = 'turniej.urls'
@@ -112,11 +113,23 @@ TEMPLATE_DIRS = [
     os.path.join(PROJECT_DIR, 'templates'),
 ]
 
     os.path.join(PROJECT_DIR, 'templates'),
 ]
 
+TEMPLATE_CONTEXT_PROCESSORS = (
+    #"django.contrib.auth.context_processors.auth",
+    "django.core.context_processors.debug",
+    "django.core.context_processors.i18n",
+    "django.core.context_processors.media",
+    "django.core.context_processors.static",
+    "django.contrib.messages.context_processors.messages",
+    "django.core.context_processors.request",
+)
+TEMPLATE_CONTEXT_PROCESSORS += (
+)
+
 INSTALLED_APPS = [
     #'django.contrib.auth',
     #'django.contrib.contenttypes',
     #'django.contrib.sessions',
 INSTALLED_APPS = [
     #'django.contrib.auth',
     #'django.contrib.contenttypes',
     #'django.contrib.sessions',
-    #'django.contrib.sites',
+    'django.contrib.sites',
     #'django.contrib.messages',
     'django.contrib.staticfiles',
 
     #'django.contrib.messages',
     'django.contrib.staticfiles',
 
@@ -124,8 +137,12 @@ INSTALLED_APPS = [
     # 'django.contrib.admindocs',
 
     'south',
     # 'django.contrib.admindocs',
 
     'south',
+    'piwik.django',
 
 
+    'fnpdjango',
     'poetry',
     'poetry',
+    'edition1',
+    'edition2',
 ]
 
 # A sample logging configuration. The only tangible logging
 ]
 
 # A sample logging configuration. The only tangible logging
@@ -151,6 +168,8 @@ LOGGING = {
     }
 }
 
     }
 }
 
+POETRY_POEMS_FOR_CONTEST = 20
+
 # Load localsettings, if they exist
 try:
     from localsettings import *
 # Load localsettings, if they exist
 try:
     from localsettings import *