Starting with forum.
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Tue, 30 Jul 2013 12:59:39 +0000 (14:59 +0200)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Tue, 30 Jul 2013 12:59:39 +0000 (14:59 +0200)
edumed/settings.d/30-apps.py
edumed/settings.d/40-context.py
edumed/settings.d/40-middleware.py
edumed/settings.d/50-contrib.py
edumed/templates/base.html
edumed/urls.py
requirements.txt

index e98a3ee..42583bd 100644 (file)
@@ -15,6 +15,7 @@ INSTALLED_APPS = (
     'haystack',
     'chunks',
     'contact',
     'haystack',
     'chunks',
     'contact',
+    'pybb',
 
     'django.contrib.auth',
     'django.contrib.contenttypes',
 
     'django.contrib.auth',
     'django.contrib.contenttypes',
index e161e0b..0cf10b8 100644 (file)
@@ -8,5 +8,6 @@ TEMPLATE_CONTEXT_PROCESSORS = tuple(x for x in (
     "django.core.context_processors.tz",
     "django.contrib.messages.context_processors.messages"
             if 'django.contrib.messages' in INSTALLED_APPS else None,
     "django.core.context_processors.tz",
     "django.contrib.messages.context_processors.messages"
             if 'django.contrib.messages' in INSTALLED_APPS else None,
-    "django.core.context_processors.request"
+    "django.core.context_processors.request",
+    'pybb.context_processors.processor',
 ) if x is not None)
 ) if x is not None)
index 34780d8..8a3d2e6 100644 (file)
@@ -21,5 +21,6 @@ MIDDLEWARE_CLASSES = tuple(x for x in (
     'pagination.middleware.PaginationMiddleware'
             if "pagination" in INSTALLED_APPS else None,
     'django.middleware.cache.FetchFromCacheMiddleware',
     'pagination.middleware.PaginationMiddleware'
             if "pagination" in INSTALLED_APPS else None,
     'django.middleware.cache.FetchFromCacheMiddleware',
-    'fnpdjango.middleware.SetRemoteAddrFromXRealIP'
+    'fnpdjango.middleware.SetRemoteAddrFromXRealIP',
+    'pybb.middleware.PybbMiddleware',
 ) if x is not None)
 ) if x is not None)
index 9291ce5..cbb615d 100644 (file)
@@ -5,3 +5,5 @@ SPONSORS_THUMB_WIDTH = 100
 SPONSORS_THUMB_HEIGHT = 56
 
 HONEYPOT_FIELD_NAME='miut'
 SPONSORS_THUMB_HEIGHT = 56
 
 HONEYPOT_FIELD_NAME='miut'
+
+PYBB_SMILES = {}
index 6233cf3..417dc88 100644 (file)
@@ -59,7 +59,7 @@
         </header>
         </div>
 
         </header>
         </div>
 
-        <div id="content">{% block body %}{% endblock %}</div>
+        <div id="content">{% block body %}{% block content %}{% endblock %}{% endblock %}</div>
 
         <footer class="main">
             {# chunks? #}
 
         <footer class="main">
             {# chunks? #}
index 3e99b30..f55af4d 100644 (file)
@@ -12,6 +12,7 @@ urlpatterns = patterns('',
         name="info"),
     url(r'^szukaj/', include('haystack.urls')),
     url(r'^zglos/', include('contact.urls')),
         name="info"),
     url(r'^szukaj/', include('haystack.urls')),
     url(r'^zglos/', include('contact.urls')),
+    url(r'^forum/', include('pybb.urls', namespace='pybb')),
 )
 
 
 )
 
 
index 41857b0..981b233 100644 (file)
@@ -28,3 +28,6 @@ django-sponsors>=1.1,<1.2
 
 django-haystack>=2.0,<2.1
 pysolr>=3,<4
 
 django-haystack>=2.0,<2.1
 pysolr>=3,<4
+
+pybbm>=0.14,<0.15
+sorl-thumbnail>=11,<12