Merge branch 'leveling'
authorRadek Czajka <radekczajka@nowoczesnapolska.org.pl>
Fri, 31 Jan 2014 14:51:59 +0000 (15:51 +0100)
committerRadek Czajka <radekczajka@nowoczesnapolska.org.pl>
Fri, 31 Jan 2014 14:51:59 +0000 (15:51 +0100)
Conflicts:
edumed/settings.d/30-apps.py

1  2 
edumed/settings.d/30-apps.py
edumed/settings.d/40-middleware.py
edumed/settings.d/50-static.py
edumed/templates/base_super.html
requirements.txt

@@@ -3,13 -3,13 +3,14 @@@ INSTALLED_APPS = 
      'curriculum',
      'catalogue',
      'comment',
 +    'wtem',
+     'publishers',
  
      'fnpdjango',
      'south',
      'pipeline',
      # Disable, if not using Piwik.
-     'piwik.django',
+     'piwik',
      # Disable, if not using CAS.
      'honeypot',
      'django_cas',
@@@ -15,8 -15,6 +15,6 @@@ MIDDLEWARE_CLASSES = tuple(x for x in 
              if "django_cas" in INSTALLED_APPS else None,
      'django.contrib.messages.middleware.MessageMiddleware'
              if "django.contrib.messages" in INSTALLED_APPS else None,
-     'piwik.django.middleware.PiwikMiddleware'
-             if "piwik.django" in INSTALLED_APPS else None,
      # Uncomment the next line for simple clickjacking protection:
      # 'django.middleware.clickjacking.XFrameOptionsMiddleware',
      'pagination.middleware.PaginationMiddleware'
@@@ -24,6 -22,5 +22,6 @@@
      'django.middleware.cache.FetchFromCacheMiddleware',
      'fnpdjango.middleware.SetRemoteAddrFromXRealIP',
      'pybb.middleware.PybbMiddleware',
 -    'forum.middleware.ForumMiddleware'
 +    'forum.middleware.ForumMiddleware',
 +    'wtem.middleware.ThreadLocalMiddleware'
  ) if x is not None)
@@@ -39,8 -39,10 +39,10 @@@ PIPELINE_JS = 
              'catalogue/js/jquery.cycle.all.js',
              'jquery/colorbox/jquery.colorbox-min.js',
              'jquery/colorbox/jquery.colorbox-pl.js',
+             'catalogue/js/carousel.js',
              'catalogue/js/edumed.js',
              'catalogue/js/lesson.js',
+             'catalogue/js/lesson-list.js',
              'sponsors/js/sponsors.js',
              'curriculum/curriculum.js',
              'js/formset.js',
          ),
          'output_filename': 'compressed/base.js',
      },
 +    'wtem': {
 +        'source_filenames': (
 +            'catalogue/js/jquery-ui-1.10.0.custom.js',
 +            'wtem/edumed.js',
 +            'wtem/wtem.js',
 +            'wtem/json2.js'
 +        ),
 +        'output_filename': 'compressed/wtem.js'
 +    },
  }
  
  PIPELINE_COMPILERS = (
@@@ -3,6 -3,7 +3,7 @@@
  {% load fnp_common fnp_share fnp_lang macros %}
  {% load compressed static %}
  {% load subdomainurls %}
+ {% load piwik_tags %}
  
  {% macro title %}{% block title %}{% endblock %}{% endmacro %}
  {% macro site_name %}Edukacja medialna{% endmacro %}
@@@ -96,7 -97,8 +97,7 @@@
          </footer>
  
      <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
 -    {% compressed_js 'base' %}
      {% block extra_script %}{% endblock %}
-     {{ piwik_tag|safe }}
+     {% tracking_code %}
      </body>
  </html>
diff --combined requirements.txt
@@@ -1,15 -1,15 +1,15 @@@
  -i http://pypi.nowoczesnapolska.org.pl/simple
  
- Django>=1.5,<1.6
+ Django>=1.6,<1.7
  South>=0.7.4
  django-pipeline>=1.2,<1.3
  python-memcached
- piwik
django-piwik
  #pyScss
  #git+git://github.com/Kronuz/pyScss.git@d8f4da23a3c87696a75b3830ed4ab49b75550a93#egg=pyScss
  #TODO: pyScss support, for now just install sass
  
 -django-jsonfield>=0.9,<0.10
 +jsonfield>=0.9,<0.10
  
  django_cas>=2.1,<2.2
  fnpdjango>=0.1.14,<0.2