• Stars
    star
    590
  • Rank 75,794 (Top 2 %)
  • Language
    Python
  • License
    Other
  • Created over 14 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

LBForum is a forum engine written in Python using Django

LBForum

LBForum is a quick and simple forum which uses the Django Framework (written in Python language). LBForum is a reusable Django application, can be added to any existing django project. LBForum is distributed under the BSD.

Demo site: http://lbf.haoluobo.com/

Demo site's source: https://github.com/vicalloy/lbforum-site

Features

  • user-friendly installation process
  • the ease of integration into any Django project and the ease of installation
  • classic view of the forum like FluxBB
  • Allow users to upload attachments to their posts(by AJAX).
  • avatar support
  • BBCode support
  • friendly edtor(by markItUp!).
  • Sticky threads (These threads are always sorted first in the list of threads)

Requirements

Installation

Installation

  1. Install LBForum by easy_install or pip.

easy_install:

$ easy_install lbforum

pip:

$ pip install lbforum

Configuration

Config urls.py:

url(r'^', include('lbforum.urls')),
url(r'^attachments/', include('lbattachment.urls')),

The LBForum has some settings should be set in settings.py:

  1. Add the following app to INSTALLED_APPS:

    'el_pagination',
    'easy_thumbnails',
    'constance',
    'constance.backends.database',
    'djangobower',
    
    'lbforum',
    'lbattachment',
    'lbutils',
    
  2. Add the following middleware to TEMPLATES['OPTIONS']['context_processors']:

    'django.contrib.messages.context_processors.messages',
    
  3. setting urls for lbforum:

    STATIC_URL = '/static/'
    STATIC_ROOT = os.path.join(PRJ_ROOT, 'collectedstatic')
    
    HOST_URL = ''
    MEDIA_URL_ = '/media/'
    MEDIA_URL = HOST_URL + MEDIA_URL_
    MEDIA_ROOT = os.path.join(PRJ_ROOT, 'media')
    
    SIGNUP_URL = '/accounts/signup/'
    LOGIN_URL = '/accounts/login/'
    LOGOUT_URL = '/accounts/logout/'
    LOGIN_REDIRECT_URL = '/'
    CHANGE_PASSWORD_URL = '/accounts/password/change/'
    
  4. settings for constance:

    CONSTANCE_BACKEND = 'constance.backends.database.DatabaseBackend'
    
    CONSTANCE_CONFIG = {
        'forbidden_words': ('', 'Forbidden words', str),
    }
    
  5. settings for bower:

    from django.conf.global_settings import STATICFILES_FINDERS
    STATICFILES_FINDERS += (('djangobower.finders.BowerFinder'),)
    
    BOWER_COMPONENTS_ROOT = PRJ_ROOT
    
    BOWER_INSTALLED_APPS = (
        'jquery#1.12',
        'markitup#1.1.14',
        'mediaelement#2.22.0',
        'blueimp-file-upload#9.12.5',
    )
    
  6. settings for BBCODE:

    BBCODE_AUTO_URLS = True
    #add allow tags
    HTML_SAFE_TAGS = ['embed']
    HTML_SAFE_ATTRS = ['allowscriptaccess', 'allowfullscreen', 'wmode']
    #add forbid tags
    HTML_UNSAFE_TAGS = []
    HTML_UNSAFE_ATTRS = []
    
    """
    #default html safe settings
    acceptable_elements = ['a', 'abbr', 'acronym', 'address', 'area', 'b', 'big',
        'blockquote', 'br', 'button', 'caption', 'center', 'cite', 'code', 'col',
        'colgroup', 'dd', 'del', 'dfn', 'dir', 'div', 'dl', 'dt', 'em',
        'font', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img',
        'ins', 'kbd', 'label', 'legend', 'li', 'map', 'menu', 'ol',
        'p', 'pre', 'q', 's', 'samp', 'small', 'span', 'strike',
        'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th',
        'thead', 'tr', 'tt', 'u', 'ul', 'var']
    acceptable_attributes = ['abbr', 'accept', 'accept-charset', 'accesskey',
        'action', 'align', 'alt', 'axis', 'border', 'cellpadding', 'cellspacing',
        'char', 'charoff', 'charset', 'checked', 'cite', 'clear', 'cols',
        'colspan', 'color', 'compact', 'coords', 'datetime', 'dir',
        'enctype', 'for', 'headers', 'height', 'href', 'hreflang', 'hspace',
        'id', 'ismap', 'label', 'lang', 'longdesc', 'maxlength', 'method',
        'multiple', 'name', 'nohref', 'noshade', 'nowrap', 'prompt',
        'rel', 'rev', 'rows', 'rowspan', 'rules', 'scope', 'shape', 'size',
        'span', 'src', 'start', 'summary', 'tabindex', 'target', 'title', 'type',
        'usemap', 'valign', 'value', 'vspace', 'width', 'style']
    """
    

Initialize The Database & Static Files

  1. Run command manage.py bower install
  2. Run command manage.py migrate

More Repositories

1

outline-docker-compose

Install a self-hosted Outline wiki instance in a couple of minutes
Shell
743
star
2

django-lb-workflow

Reusable workflow library for Django
Python
210
star
3

telegram-shell-bot

A telegram Bot to run shell commands
Python
192
star
4

DPress

A simple blog powered by Django
Python
87
star
5

timeline-site

a site about timeline
JavaScript
83
star
6

lbforum-site

LBForum's Demo Site
Python
65
star
7

china-population

图表化中国人口统计数据
Python
46
star
8

dj-scaffold

dj-scaffold installs a script which allows the easy creation of a standard Django project layout
Python
34
star
9

carrot-box

Carrot box is a workflow platform. Ready to go.
Python
23
star
10

django-simple-todo

Python
21
star
11

lbplayer

a web music player, powered by jplayer and django.
JavaScript
21
star
12

daily-portrait

Automatically align portraits and create a time-lapse video. (photo a day)
Python
19
star
13

image-transformer

React App for style transfer using ONNX Runtime Web. (fast-neural-style / AnimeGANv2)
JavaScript
18
star
14

magpie

A stock tool, set stop-loss and revenue points for stocks, and initiate message pushes when stop-loss or revenue points are reached.
Python
16
star
15

lb-maze

A random maze generator, solver, and renderer.
CoffeeScript
12
star
16

django-simple-avatar

A reusable django application for handling Avatars.
Python
12
star
17

onlineuser

a django app output online users
Python
11
star
18

jobmonitor

招聘网站信息监控工具,监控招聘网站工作岗位更新情况并发送通知
Python
11
star
19

jstnote

Python
9
star
20

12306-ticket-checker

Python
8
star
21

docker-images

Dockerfiles for poetry/mlc-llm(rk3588)/...
Dockerfile
8
star
22

django-helper

a collection of useful middleware, template tags, etc
Python
8
star
23

django-lbattachment

A django app to manager attachments.
Python
7
star
24

oidc-server

A self-hosted OIDC server
Python
7
star
25

django-lb-attachments

A generic Django application to attach Files
Python
7
star
26

gaokao

历年高考人数及录取率 1977~2023
HTML
6
star
27

lbutils

A set of useful function/tags/filter for Django.
Python
3
star
28

lb.ting

C#
3
star
29

django-lb-adminlte

Reusable AdminLTE templates library for Django
JavaScript
2
star
30

scnews

汇聚各论坛二手数码交易信息
Python
2
star
31

dotfiles

vicalloy's dotfiles
Shell
1
star
32

jobmonitorweb

Python
1
star
33

html5gamedev

collect html5 game develop resource
1
star
34

html2markdown

JavaScript
1
star