{"id":13746813,"url":"https://github.com/vicalloy/LBForum","last_synced_at":"2025-05-09T07:32:24.380Z","repository":{"id":819494,"uuid":"531541","full_name":"vicalloy/LBForum","owner":"vicalloy","description":"LBForum is a forum engine written in Python using Django","archived":false,"fork":false,"pushed_at":"2021-06-10T17:24:26.000Z","size":1233,"stargazers_count":591,"open_issues_count":8,"forks_count":205,"subscribers_count":52,"default_branch":"master","last_synced_at":"2025-04-12T04:50:52.113Z","etag":null,"topics":["django","forum"],"latest_commit_sha":null,"homepage":"http://lbf.haoluobo.com/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":"Unmaintained","scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vicalloy.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-02-23T05:54:19.000Z","updated_at":"2025-03-26T18:05:39.000Z","dependencies_parsed_at":"2022-08-16T11:00:42.961Z","dependency_job_id":null,"html_url":"https://github.com/vicalloy/LBForum","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicalloy%2FLBForum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicalloy%2FLBForum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicalloy%2FLBForum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicalloy%2FLBForum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vicalloy","download_url":"https://codeload.github.com/vicalloy/LBForum/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253209473,"owners_count":21871660,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","forum"],"created_at":"2024-08-03T06:01:02.086Z","updated_at":"2025-05-09T07:32:24.077Z","avatar_url":"https://github.com/vicalloy.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"=======\nLBForum\n=======\n\n.. contents::\n\n.. |rst| replace:: :emphasis:`re`\\ :strong:`Structured`\\ :sup:`Text`\n\nLBForum is a quick and simple forum which uses the Django Framework (written\nin Python language). LBForum is a reusable Django application, can be added\nto any existing django project.\nLBForum is distributed under the BSD.\n\nDemo site: http://lbf.haoluobo.com/\n\nDemo site's source: https://github.com/vicalloy/lbforum-site\n\nFeatures\n========\n\n* user-friendly installation process\n* the ease of integration into any Django project and the ease of installation\n* classic view of the forum like FluxBB\n* Allow users to upload attachments to their posts(by AJAX).\n* avatar support\n* BBCode support\n* friendly edtor(by markItUp!).\n* Sticky threads (These threads are always sorted first in the list of threads)\n\nRequirements\n============\n\n* `Python 2.7 or 3.4+`_\n* `Django 1.10`_\n\n.. _`Python 2.7 or 3.4+`: http://python.org/\n.. _`Django 1.10`: http://www.djangoproject.com/\n\nInstallation\n============\n\nInstallation\n------------\n\n#. Install LBForum by easy_install or pip.\n\n``easy_install``::\n\n    $ easy_install lbforum\n\n``pip``::\n\n    $ pip install lbforum\n\nConfiguration\n-------------\n\nConfig urls.py::\n\n    url(r'^', include('lbforum.urls')),\n    url(r'^attachments/', include('lbattachment.urls')),\n\n\nThe LBForum has some settings should be set in `settings.py`:\n\n#. Add the following app to ``INSTALLED_APPS``::\n\n    'el_pagination',\n    'easy_thumbnails',\n    'constance',\n    'constance.backends.database',\n    'djangobower',\n\n    'lbforum',\n    'lbattachment',\n    'lbutils',\n\n#. Add the following middleware to ``TEMPLATES['OPTIONS']['context_processors']``::\n\n    'django.contrib.messages.context_processors.messages',\n    \n#. setting urls for lbforum::\n    \n    STATIC_URL = '/static/'\n    STATIC_ROOT = os.path.join(PRJ_ROOT, 'collectedstatic')\n\n    HOST_URL = ''\n    MEDIA_URL_ = '/media/'\n    MEDIA_URL = HOST_URL + MEDIA_URL_\n    MEDIA_ROOT = os.path.join(PRJ_ROOT, 'media')\n    \n    SIGNUP_URL = '/accounts/signup/'\n    LOGIN_URL = '/accounts/login/'\n    LOGOUT_URL = '/accounts/logout/'\n    LOGIN_REDIRECT_URL = '/'\n    CHANGE_PASSWORD_URL = '/accounts/password/change/'\n\n#. settings for constance::\n\n    CONSTANCE_BACKEND = 'constance.backends.database.DatabaseBackend'\n\n    CONSTANCE_CONFIG = {\n        'forbidden_words': ('', 'Forbidden words', str),\n    }\n\n#. settings for bower::\n\n    from django.conf.global_settings import STATICFILES_FINDERS\n    STATICFILES_FINDERS += (('djangobower.finders.BowerFinder'),)\n\n    BOWER_COMPONENTS_ROOT = PRJ_ROOT\n\n    BOWER_INSTALLED_APPS = (\n        'jquery#1.12',\n        'markitup#1.1.14',\n        'mediaelement#2.22.0',\n        'blueimp-file-upload#9.12.5',\n    )\n    \n#. settings for BBCODE::\n\n    BBCODE_AUTO_URLS = True\n    #add allow tags\n    HTML_SAFE_TAGS = ['embed']\n    HTML_SAFE_ATTRS = ['allowscriptaccess', 'allowfullscreen', 'wmode']\n    #add forbid tags\n    HTML_UNSAFE_TAGS = []\n    HTML_UNSAFE_ATTRS = []\n    \n    \"\"\"\n    #default html safe settings \n    acceptable_elements = ['a', 'abbr', 'acronym', 'address', 'area', 'b', 'big',\n        'blockquote', 'br', 'button', 'caption', 'center', 'cite', 'code', 'col',\n        'colgroup', 'dd', 'del', 'dfn', 'dir', 'div', 'dl', 'dt', 'em',\n        'font', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', \n        'ins', 'kbd', 'label', 'legend', 'li', 'map', 'menu', 'ol', \n        'p', 'pre', 'q', 's', 'samp', 'small', 'span', 'strike',\n        'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th',\n        'thead', 'tr', 'tt', 'u', 'ul', 'var']\n    acceptable_attributes = ['abbr', 'accept', 'accept-charset', 'accesskey',\n        'action', 'align', 'alt', 'axis', 'border', 'cellpadding', 'cellspacing',\n        'char', 'charoff', 'charset', 'checked', 'cite', 'clear', 'cols',\n        'colspan', 'color', 'compact', 'coords', 'datetime', 'dir', \n        'enctype', 'for', 'headers', 'height', 'href', 'hreflang', 'hspace',\n        'id', 'ismap', 'label', 'lang', 'longdesc', 'maxlength', 'method',\n        'multiple', 'name', 'nohref', 'noshade', 'nowrap', 'prompt', \n        'rel', 'rev', 'rows', 'rowspan', 'rules', 'scope', 'shape', 'size',\n        'span', 'src', 'start', 'summary', 'tabindex', 'target', 'title', 'type',\n        'usemap', 'valign', 'value', 'vspace', 'width', 'style']\n    \"\"\"\n    \nInitialize The Database \u0026 Static Files\n-----------------------\n\n#. Run command ``manage.py bower install``\n\n#. Run command ``manage.py migrate``\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvicalloy%2FLBForum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvicalloy%2FLBForum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvicalloy%2FLBForum/lists"}