This is a very basic forum application that can plug into any existing Django installation and use it's existing templates, users, and admin interface.
It's perfect for adding forum functionality to an existing website.
Development was done on Django SVN rev. 5007. YMMV on other revisions.
Please send comments/suggestions to me directly, ross at rossp dot org.
Google Code Page / SVN: http://code.google.com/p/django-forum/ My Home Page: http://www.rossp.org
[1] http://code.google.com/p/django-registration/
Note: The forum software can be at any URI you like, just change the relevant urls.py entry. EG replace 'forum/' with '/' to have your forum at the root URI, or 'mysite/community/forum/' - whatever you need.
Note: You can include the forum sitemaps in your main sitemap index. Example:
from forum.urls import sitemap_dict as forum_sitemap
yoursitemap_dict.update(forum_sitemap)
urlpatterns = patterns('',
(r'^sitemap.xml$', 'django.contrib.sitemaps.views.index', {'sitemaps': yoursitemap_dict}),
(r'^sitemap-(?P<section>.+)\.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': yoursitemap_dict}),
)
If you've upgraded from an SVN revision prior to r51, you will need to update your database using the following commands:
ALTER TABLE forum_post ADD COLUMN body_html longtext; ALTER TABLE "forum_forum" ADD COLUMN "ordering" integer NULL;
ALTER TABLE "forum_post" ADD COLUMN "body_html" text; # PostgreSQL ALTER TABLE "forum_forum" ADD COLUMN "ordering" integer NULL;
Then, from a Python shell:
from markdown import markdown from forum.models import Post for post in Post.objects.all(): ... post.body_html = '' ... post.save() ... exit()
The following people have contributed code or ideas to this project. Thank you for all of your efforts: