Django based forum engine
this doc is deprecated
saw wiki: djangobb.org/wiki/QuickInstall [djangobb.org]
I felt like this should be present in some form on this website, since it did not appear to be found consistently anywhere. Had I had these steps, it would have saved me a couple hours worth of work digging up how to do it. Maybe I can save someone else that effort.
Please note that I installed my first copy/instance of django yesterday, and I'm not at all familiar with django or with djangobb. So I'm just identifying the steps I needed to perform to resolve the installation issues. Also, I've had more than a decade of using python.
Key:
PROJECT_ROOT – this is where your site is installed
DJANGOBB_SRC – this is where you placed the mercurial clone of django_bb
Prerequisites:
./manage.py syncdb --all
./manage.py migrate djangobb_forum --fake
Edited slav0nic (Aug. 18, 2011 12:31:56)
Offline
tnx)
Offline
bixmix, thank you. I added in main page djangobb.org/
Offline
The above instructions imply that you are adding djangobb to an established Django project. If you are just using the forum, or if you are starting a project by setting up the forum first then you can just use the djangobb directory as is, and you do not need all those copying steps.
A couple of things that caught me that you want to watch out for.
Firstly I found that when the user tried to register it would throw an error about wrong number of arguments. This was because I had the wrong version of django-registration. At the time of writing, you need to use a particular version of django-registration, namely 0.7 NOT 0.8a. Version 0.7 can be obtained from the following link: bitbucket.org/ubernostrum/django-registration/get/v0.7.tar.gz
Secondly, I couldn't see why the activation emails were not being sent. The answer is that Djangobb uses django-mailer so therefore outgoing email from the forum is cached in the database and sent out with the command:
python manage.py send_mail
You will need to setup a cron job to run this command every minute or so.
Offline
zeth0
If you are just using the forum, or if you are starting a project by setting up the forum first then you can just use the djangobb directory as is, and you do not need all those copying steps.
zeth0
At the time of writing, you need to use a particular version of django-registration, namely 0.7 NOT 0.8a. Version 0.7 can be obtained from the following link: bitbucket.org/ubernostrum/django-registration/get/v0.7.tar.gz
zeth0
The answer is that Djangobb uses django-mailer so therefore outgoing email from the forum is cached in the database and sent out with the command:
python manage.py send_mail
You will need to setup a cron job to run this command every minute or so.
Edited bixmix (Nov. 8, 2010 20:40:03)
Offline
i added crontab file
Offline
slav0nic
i added crontab file
Offline
we don't have money for windows
no, windows sux as server for python
Offline
bixmix
The cron job won't work on a non posix system. I'm not sure how to handle this.
Offline
I have djangobb installed as an app. I only installed what was necessary, anything optional was ignored. I am at the point where it tries to render base.html but I get the following error:
Caught VariableDoesNotExist while rendering: Failed lookup for key [request] on the line containing {% set_theme_style request.user %}
I see it's requesting "user" from the following list and can see "user" is defined. But the request object can't access it. So how can I solve this?
[
{
},
{
'csrf_token': <django.utils.functional.__proxy__ object at 0x7fab5130c550>
},
{
'perms': <django.utils.functional.__proxy__ object at 0x7fab51313410>,
'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x7fab50916950>,
'user': <django.utils.functional.SimpleLazyObject object at 0x7fab5130c5d0>
},
{
},
{
'LANGUAGES': (('ar',
'Arabic'),
('bg',
'Bulgarian'),
('bn',
'Bengali'),
('bs',
'Bosnian'),
('ca',
'Catalan'),
('cs',
'Czech'),
('cy',
'Welsh'),
('da',
'Danish'),
('de',
'German'),
('el',
'Greek'),
('en',
'English'),
('en-gb',
'British English'),
('es',
'Spanish'),
('es-ar',
'Argentinian Spanish'),
('et',
'Estonian'),
('eu',
'Basque'),
('fa',
'Persian'),
('fi',
'Finnish'),
('fr',
'French'),
('fy-nl',
'Frisian'),
('ga',
'Irish'),
('gl',
'Galician'),
('he',
'Hebrew'),
('hi',
'Hindi'),
('hr',
'Croatian'),
('hu',
'Hungarian'),
('id',
'Indonesian'),
('is',
'Icelandic'),
('it',
'Italian'),
('ja',
'Japanese'),
('ka',
'Georgian'),
('km',
'Khmer'),
('kn',
'Kannada'),
('ko',
'Korean'),
('lt',
'Lithuanian'),
('lv',
'Latvian'),
('mk',
'Macedonian'),
('ml',
'Malayalam'),
('mn',
'Mongolian'),
('nl',
'Dutch'),
('no',
'Norwegian'),
('nb',
'Norwegian Bokmal'),
('nn',
'Norwegian Nynorsk'),
('pl',
'Polish'),
('pt',
'Portuguese'),
('pt-br',
'Brazilian Portuguese'),
('ro',
'Romanian'),
('ru',
'Russian'),
('sk',
'Slovak'),
('sl',
'Slovenian'),
('sq',
'Albanian'),
('sr',
'Serbian'),
('sr-latn',
'Serbian Latin'),
('sv',
'Swedish'),
('ta',
'Tamil'),
('te',
'Telugu'),
('th',
'Thai'),
('tr',
'Turkish'),
('uk',
'Ukrainian'),
('vi',
'Vietnamese'),
('zh-cn',
'Simplified Chinese'),
('zh-tw',
'Traditional Chinese')),
'LANGUAGE_BIDI': False,
'LANGUAGE_CODE': 'en-us'
},
{
'MEDIA_URL': '/media/'
},
{
'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x7fab50916950>
},
{
'cats': [
],
'users': 1,
'last_user': <User: danc>,
'topics': 0,
'guest_count': 0,
'posts': 0,
'users_online': [
],
'online_count': 0
}
]
Offline