DjangoBB

Django based forum engine

  • You are not logged in.

#1 Dec. 16, 2009 16:00:31

d99
Registered: 2009-12-16
Posts: 2
Reputation: +  0  -
Profile   Send e-mail  

Tutrial

Is there any tutorial how to install and use that?

Edited None (Dec. 16, 2009 16:06:41)

Offline

#2 Dec. 16, 2009 16:19:11

slav0nic
DjangoBB Developer
From: Ukraine
Registered: 2009-10-25
Posts: 83
Reputation: +  1  -
Profile   Send e-mail  

Tutrial

no, maybe i wrote it latter

if u know django, it will no problem for u

Offline

#3 Feb. 25, 2010 15:17:41

alienbaby
Registered: 2010-02-25
Posts: 5
Reputation: +  0  -
Profile   Send e-mail  

Tutrial

Hi,

I too am looking for help installing. I'm just learning Django, so unfortunatley the instruction you gave above doesnt help!

I hope I can get some help, because it looks like a great piece of software and I'd much rather be able to tell others ''yeah, use Django-BB its good' rather than ''Don't bother with that, its a pain to install and theres no help for trying either'

Cheers!

edit: I have tried moving the django_forum app directory into my own site directory, and updated installed_apps, but on trying to run syncdb I get the error;

OSError: [Errno 2] No such file or directory: 'forum/themes'


I can see this dir in the original package I downloaded, and aso urls.py etc... with info specific to django_forum in it, but I have no idea how to merge or make that info accessible to my main site.

A few simple, 1,2,3 steps would be great!

Edited alienbaby (Feb. 25, 2010 15:20:50)

Offline

#4 Feb. 25, 2010 17:19:44

slav0nic
DjangoBB Developer
From: Ukraine
Registered: 2009-10-25
Posts: 83
Reputation: +  1  -
Profile   Send e-mail  

Tutrial

also u must copy static/forum to your MEDIA_ROOT.
Added 'djangobb_forum.middleware.LastLoginMiddleware', 'djangobb_forum.middleware.UsersOnline' to MIDDLEWARE_CLASSES .
'djangobb_forum.context_processors.forum_settings' to TEMPLATE_CONTEXT_PROCESSORS .
djapian to INSTALLED_APPS.

Edited slav0nic (Feb. 25, 2010 17:22:37)

Offline

#5 Feb. 26, 2010 15:52:13

alienbaby
Registered: 2010-02-25
Posts: 5
Reputation: +  0  -
Profile   Send e-mail  

Tutrial

slav0nic
also u must copy static/forum to your MEDIA_ROOT.
Added 'djangobb_forum.middleware.LastLoginMiddleware', 'djangobb_forum.middleware.UsersOnline' to MIDDLEWARE_CLASSES .
'djangobb_forum.context_processors.forum_settings' to TEMPLATE_CONTEXT_PROCESSORS .
djapian to INSTALLED_APPS.


Excellent, thanks for that. I've made more progress.

TEMPLATE_CONTEXT_PROCESSORS wasnt included into setting.py by default, so I added that.

I also had to add

DJAPIAN_DATABASE_PATH

and update urls.py to include the djangobb_forum url's,

(r'^djangobb_forum/', include('project_swirl.djangobb_forum.urls'))


./manage.py syncdb now works fine.

When trying to access the forum front-page though, I get the following problem;

Template error

In template /home/matt/DEV/project_swirl/djangobb_forum/templates/forum/base.html, error at line 18
Caught an exception while rendering: u'djangobb' is not a registered namespace

16 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}forum/js/markitup/sets/bbcode/style.css" />
17
18 <link rel="alternate" type="application/atom+xml" href="{% url djangobb:forum_feed "posts" %}" title="{% trans "Latest posts on forum" %}" />
19 <link rel="alternate" type="application/atom+xml" href="{% url djangobb:forum_feed "topics" %}" title="{% trans "Latest topics on forum" %}" />
20
21 <link rel="shortcut icon" href="{{ MEDIA_URL }}forum/favicon.png" type="image/png" />


I've looked up the {% url ... %} syntax to try and see what goping on, it says 'djangobb:forum_feed' should be a path to a view, but I dont understand the ':' in there rather than a normal '.', and I'm guessing "posts" is just the first positional arg to that view, wherever it is .

::EDIT, Update::
I have since deterined the : notation is specifying a namespace. Changing my urls.py include line to read;

(r'^djangobb_forum/', include('project_swirl.djangobb_forum.urls',namespace='djangobb'))

Has cleared the above error, but I am now seeing the following error instead.

Template error

In template /home/matt/DEV/project_swirl/djangobb_forum/templates/forum/header.html, error at line 29
Caught an exception while rendering: Reverse for 'user_signin' with arguments '()' and keyword arguments '{}' not found.




Any help much appreciated!

If I get this working, I'll writeup an install guide from my point of view, maybe you can use that as a base for a better one

Edited alienbaby (Feb. 26, 2010 16:54:38)

Offline

#6 Feb. 26, 2010 17:07:58

slav0nic
DjangoBB Developer
From: Ukraine
Registered: 2009-10-25
Posts: 83
Reputation: +  1  -
Profile   Send e-mail  

Tutrial

create project_swirl/templates/forum/header.html like djangobb_forum/templates/forum/header.html and remove user_signin.
This is view from django-authopenid.


<li id="navlogout"><a href="{% url user_signout %}?next={{ request.path }}">{% trans "Log out" %}</a></li>
    {% else %}
         <li><a href="{% url user_signin %}">{% trans "Log in" %}</a></li>
	 <li><a href="{% url registration_register %}">{% trans "Sign up" %}</a></li>

Edited slav0nic (Feb. 26, 2010 17:22:18)

Offline

#7 Feb. 26, 2010 19:00:44

alienbaby
Registered: 2010-02-25
Posts: 5
Reputation: +  0  -
Profile   Send e-mail  

Tutrial

slav0nic
create project_swirl/templates/forum/header.html like djangobb_forum/templates/forum/header.html and remove user_signin.
This is view from django-authopenid.


<li id="navlogout"><a href="{% url user_signout %}?next={{ request.path }}">{% trans "Log out" %}</a></li>
    {% else %}
         <li><a href="{% url user_signin %}">{% trans "Log in" %}</a></li>
	 <li><a href="{% url registration_register %}">{% trans "Sign up" %}</a></li>



Hi,
Ok, removing lines from the templates seemed to lead to further errors relating to openid etc.. so I have gone ahead and setup django-authopenid and django-registration

I followed the setup instructions and getting-started.txt for django-authopenid, then downloaded each of the example templates from the django-authopenid project and placed them in the project_swirl/djangobb_forum/templates directory, under their relevant subdirs if needed (registration, authopenid)

syncdb works fine again.

Now, it's sort-of working. I have the following issues,

I can get the djangobb front page (No CSS styles though, just raw ugly html. I guess I need to make my own css styles too?) , select 'sign up' to signup, I can fill in the signup form, and get the confirmation page, but I get no email to confirm the registration.

When I select 'log in' I get the following error,

Page not found (404)
Request Method: GET
Request URL: http://127.0.0.1:8000/

Using the URLconf defined in bodysnatchers.urls, Django tried these URL patterns, in this order:

1. ^admin/
2. ^djangobb_forum/
3. ^account/
4. ^accounts/

The current URL, , didn't match any of these.

However, when showing the djangobb_forum front page, I do see any attempts at registering a username appear under the 'latest registered user' text on the fornt page. Also, I get the default user (setup during syncdb) displayed as 'logged on', and I am able to click the username link and get the preferences page. I can upadte preferences etc...

Edited alienbaby (Feb. 26, 2010 19:10:08)

Offline

#8 Feb. 27, 2010 02:13:52

slav0nic
DjangoBB Developer
From: Ukraine
Registered: 2009-10-25
Posts: 83
Reputation: +  1  -
Profile   Send e-mail  

Tutrial

alienbaby
If you used authopenid for login/registration - include it to urls.py like it done id djangobb/urls.py .

For css etc static you must read http://docs.djangoproject.com/en/dev/howto/static-files/ , after - http://hg.djangobb.org/djangobb/file/517b2d8045b1/djangobb/urls.py#l39 .

For email confirmation - email settings must be configured. (also u can activate user from admin cp, make it active).

Edited slav0nic (Feb. 27, 2010 02:20:41)

Offline

#9 Feb. 27, 2010 16:26:08

thangommy
Registered: 2010-02-25
Posts: 2
Reputation: +  0  -
Profile   Send e-mail  

Tutrial

Ok, with that and a few other incidental tweaks etc.. it all appears to be working

To be fair, I think my lack of django knowledge was 1/2 the problem, now I understand overall what needed to be done. Thanks for your help and patience though

I'll writeup what I went through, if you will find it useful to use as a base for a more complete install guide. Actually, is there a correct way of submitting something like that to tthe project?

cheers

Offline

#10 Feb. 28, 2010 12:47:10

slav0nic
DjangoBB Developer
From: Ukraine
Registered: 2009-10-25
Posts: 83
Reputation: +  1  -
Profile   Send e-mail  

Tutrial

thangommy
http://djangobb.org/newticket
We plan to write russian docs, after - will translated it to english.

Offline

Board footer

Moderator control

Powered by DjangoBB