python - PyBBM in Django static content -
I'm trying to work PyBBM 0.15.5 on Django 1.6.3. It sounds easy enough, but I go into a small problem, which I do not know where to look.
When PEBBM is trying to load the static content, it does not use the correct URL. Uses:
/forum/forum/2/topic/add/pybb/emoticons/shok.png
^ (failed ) < )
Obviously generates a URL based on some variables, which are not set correctly, but I do not know where from To see the PEBBM app? General Settings?
In my settings for my project, I have a static url setup, as follows:
STATIC_URL = '/ static /' < / Blockquote>
The actual stable content is in this directory:
/usr/local/lib/python2.7/dist-packages/pybb/static/pybb/ < / Blockquote>
Any sign is appreciated and I am sorry for my ignorance because I am a newbie coder.
Dennis
I was missing from the following reference processor: < After adding pre->
'django.core.context_processors.static',
, it was correctly picked STATIC_URL in settings.py. Although I also ran on another issue, where PEBBM had tested for reference in a LANGUAGE_CODE, which was not there. I solved this reference by adding the processor:
'django.core.context_processors.i18n',
Comments
Post a Comment