fnp
/
edumed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fa95e6e
)
Starting with forum.
author
Radek Czajka
<radoslaw.czajka@nowoczesnapolska.org.pl>
Tue, 30 Jul 2013 12:59:39 +0000
(14:59 +0200)
committer
Radek Czajka
<radoslaw.czajka@nowoczesnapolska.org.pl>
Tue, 30 Jul 2013 12:59:39 +0000
(14:59 +0200)
edumed/settings.d/30-apps.py
patch
|
blob
|
history
edumed/settings.d/40-context.py
patch
|
blob
|
history
edumed/settings.d/40-middleware.py
patch
|
blob
|
history
edumed/settings.d/50-contrib.py
patch
|
blob
|
history
edumed/templates/base.html
patch
|
blob
|
history
edumed/urls.py
patch
|
blob
|
history
requirements.txt
patch
|
blob
|
history
diff --git
a/edumed/settings.d/30-apps.py
b/edumed/settings.d/30-apps.py
index
e98a3ee
..
42583bd
100644
(file)
--- a/
edumed/settings.d/30-apps.py
+++ b/
edumed/settings.d/30-apps.py
@@
-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',
diff --git
a/edumed/settings.d/40-context.py
b/edumed/settings.d/40-context.py
index
e161e0b
..
0cf10b8
100644
(file)
--- a/
edumed/settings.d/40-context.py
+++ b/
edumed/settings.d/40-context.py
@@
-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)
diff --git
a/edumed/settings.d/40-middleware.py
b/edumed/settings.d/40-middleware.py
index
34780d8
..
8a3d2e6
100644
(file)
--- a/
edumed/settings.d/40-middleware.py
+++ b/
edumed/settings.d/40-middleware.py
@@
-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)
diff --git
a/edumed/settings.d/50-contrib.py
b/edumed/settings.d/50-contrib.py
index
9291ce5
..
cbb615d
100644
(file)
--- a/
edumed/settings.d/50-contrib.py
+++ b/
edumed/settings.d/50-contrib.py
@@
-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 = {}
diff --git
a/edumed/templates/base.html
b/edumed/templates/base.html
index
6233cf3
..
417dc88
100644
(file)
--- a/
edumed/templates/base.html
+++ b/
edumed/templates/base.html
@@
-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? #}
diff --git
a/edumed/urls.py
b/edumed/urls.py
index
3e99b30
..
f55af4d
100644
(file)
--- a/
edumed/urls.py
+++ b/
edumed/urls.py
@@
-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')),
)
)
diff --git
a/requirements.txt
b/requirements.txt
index
41857b0
..
981b233
100644
(file)
--- a/
requirements.txt
+++ b/
requirements.txt
@@
-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