使用django用python编写的论坛引擎
LBForum的Python项目详细描述
===
lbforum
==
…内容:
…| rst replace:::emphasis:`re`\:strong:`structured`\:sup:`text`
lbforum是一个使用django框架的快速而简单的论坛(用python语言编写)。lbforum是一个可重用的django应用程序,可以添加到任何现有的django项目中。
lbforum在bsd下发布。
demo站点:http://lbf.haoloobo.com/
demo站点的源代码:http s://github.com/vicalloy/lbforum站点集成到任何django项目中,并且易于安装
*fluxbb等论坛的经典视图
*允许用户将附件上传到他们的文章中(通过ajax)。
*虚拟形象支持
*bbcode支持
*友好edtor(通过markitup!)._` Python2.7或3.4+`:http://python.org/
。_` django 1.10`:http://www.djangoproject.com/
安装
===
通过简单安装或pip安装lbforum。
``简单安装``:
$easy-install lbforum
``pip``:
$pip install lbforum
configuration
--
config-config-url.py:
url(r'^',include('lbforum.url'),
url(r'^attachments/',include('lbattachment.urls'),
lbforum的某些设置应在"settings.py"中设置:
。将以下应用程序添加到"已安装的应用程序"中:
'el_pagination',
'easy_thumbnails',
'constance',
'constance.backends.database',
'djangobower',
'lbforum',
'lbattachment',
'lbutils',
。将以下中间件添加到``templates['options']['context_processors']```中:
'django.contrib.messages.context_processors.messages',
。为lbforum设置url:
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")
注册URL='/accounts/signup/'
登录URL='/accounts/login/'
注销URL='/accounts/logout/'
登录重定向URL='/'
更改密码URL='/accounts/password/change/'
constance的设置:
constance_backend='constance.backends.database.databasebackend'
constance_config={
'禁止的字词':('',禁止的字词',str),
}
。Bower的设置:
from django.conf.global_settings import staticfiles_finders
staticfiles_finders+=('django bower.finders.bowerfinder'),)
Bower_components_root=prj_root
Bower u installed_apps=(
'jquery 1.12',
"markitup 1.1.14"、
"mediaelent 2.22.0"、
"blueimp文件上传9.12.5"、
)
。bbcode的设置:
\add allow tags
html_safe_tags=['embed']
html_safe_attrs=['allowscriptaccess','allowfullscreen',"wmode"]
添加禁止标记
html_unsafe_tags=[]
html_unsafe_attrs=[]
"
"默认html安全设置
可接受的_元素=['a'、'abbr'、'acronym'、'address'、'area'、'b'、'big'、
'blockquote'、'br'、'button'、'caption',"中心"、"引用"、"代码"、"列"、"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"、"sam"p'、'small'、'span'、'strike'、
'strong'、'sub'、'sup'、'table'、'tbody'、'td'、'tfoot'、'th'、
'thead'、'tr'、'tt'、'u'、'ul'、'var']
可接受的属性=['abbr'、'accept'、'accept charset'、'accesskey'、
'action'、'align'、'alt'、'axis'、'cellpadding'、'cellspacing'、
'char'、'charoff'、'charset'、'checked'、'cite'、'clear'、'cols'、
'colspan'、'color'、'compact'、'coords'、'datetime'、'dir'、
'enctype'、'for'、'headers'、'height'、'ref'、'hreflang'、'hspace'、
'id'、'ismap'、'lab"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"]
"
初始化数据库和静态文件
运行命令"manage.py bower install"。运行命令``manage.py migrate``
lbforum
==
…内容:
…| rst replace:::emphasis:`re`\:strong:`structured`\:sup:`text`
lbforum是一个使用django框架的快速而简单的论坛(用python语言编写)。lbforum是一个可重用的django应用程序,可以添加到任何现有的django项目中。
lbforum在bsd下发布。
demo站点:http://lbf.haoloobo.com/
demo站点的源代码:http s://github.com/vicalloy/lbforum站点集成到任何django项目中,并且易于安装
*fluxbb等论坛的经典视图
*允许用户将附件上传到他们的文章中(通过ajax)。
*虚拟形象支持
*bbcode支持
*友好edtor(通过markitup!)._` Python2.7或3.4+`:http://python.org/
。_` django 1.10`:http://www.djangoproject.com/
安装
===
通过简单安装或pip安装lbforum。
``简单安装``:
$easy-install lbforum
``pip``:
$pip install lbforum
configuration
--
config-config-url.py:
url(r'^',include('lbforum.url'),
url(r'^attachments/',include('lbattachment.urls'),
lbforum的某些设置应在"settings.py"中设置:
。将以下应用程序添加到"已安装的应用程序"中:
'el_pagination',
'easy_thumbnails',
'constance',
'constance.backends.database',
'djangobower',
'lbforum',
'lbattachment',
'lbutils',
。将以下中间件添加到``templates['options']['context_processors']```中:
'django.contrib.messages.context_processors.messages',
。为lbforum设置url:
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")
注册URL='/accounts/signup/'
登录URL='/accounts/login/'
注销URL='/accounts/logout/'
登录重定向URL='/'
更改密码URL='/accounts/password/change/'
constance的设置:
constance_backend='constance.backends.database.databasebackend'
constance_config={
'禁止的字词':('',禁止的字词',str),
}
。Bower的设置:
from django.conf.global_settings import staticfiles_finders
staticfiles_finders+=('django bower.finders.bowerfinder'),)
Bower_components_root=prj_root
Bower u installed_apps=(
'jquery 1.12',
"markitup 1.1.14"、
"mediaelent 2.22.0"、
"blueimp文件上传9.12.5"、
)
。bbcode的设置:
html_safe_tags=['embed']
html_safe_attrs=['allowscriptaccess','allowfullscreen',"wmode"]
添加禁止标记
html_unsafe_tags=[]
html_unsafe_attrs=[]
"
"默认html安全设置
可接受的_元素=['a'、'abbr'、'acronym'、'address'、'area'、'b'、'big'、
'blockquote'、'br'、'button'、'caption',"中心"、"引用"、"代码"、"列"、"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"、"sam"p'、'small'、'span'、'strike'、
'strong'、'sub'、'sup'、'table'、'tbody'、'td'、'tfoot'、'th'、
'thead'、'tr'、'tt'、'u'、'ul'、'var']
可接受的属性=['abbr'、'accept'、'accept charset'、'accesskey'、
'action'、'align'、'alt'、'axis'、'cellpadding'、'cellspacing'、
'char'、'charoff'、'charset'、'checked'、'cite'、'clear'、'cols'、
'colspan'、'color'、'compact'、'coords'、'datetime'、'dir'、
'enctype'、'for'、'headers'、'height'、'ref'、'hreflang'、'hspace'、
'id'、'ismap'、'lab"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"]
"
初始化数据库和静态文件
运行命令"manage.py bower install"。运行命令``manage.py migrate``