Django的网络日志。
django-vellum的Python项目详细描述
一个[django](http://www.djangoproject.com/)web日志应用程序。
创世记
这个应用程序作为[nathan borror](http://nathanborror.com/)’s[django basic apps](https://github.com/nathanborror/django-basic-apps)的一部分开始使用,这是一个简单的预构建django应用程序的集合。
当我第一次决定搬到一个基于Django的博客时,我环顾四周,看看有没有我能使用的现有项目。当然也不乏博客应用程序,但它们都不是我想要的。内森的基本博客很接近,但顾名思义,非常基本。[kevin fricovsky](http://montylounge.com/)’s[django mingus](https://github.com/montylounge/django-mingus),它本身就建立在内森的基本博客之上,对我最有吸引力,但仍然有一些我不喜欢的方面。所以我决定创造我自己的。以真正的开源方式,我开发了django基本应用程序。它提供了一个很好的工作框架——如果我从头开始,我最终会重现内森已经做过的很多事情。有了这个叉子,再加上django mingus和wordpress的一些灵感,我能够设计出一个非常适合我的博客应用程序。我觉得它很不错-结果它也很适合其他人!
我唯一不喜欢的是,这个博客是django应用程序的一部分,其中大部分我没有使用。我很高兴把我的名字写在博客上,但我不想维护或担保其他众多的应用程序。所以,我剥离了另外两个我使用过的应用程序([django media](https://github.com/pigmonkey/django-media)和[django inlineobjects](https://github.com/pigmonkey/django-inlineobjects)),删除了其余的,并重命名了博客。
因此,django-[vellum](https://en.wikipedia.org/wiki/Vellum)。
功能
###wordpress导入
包含一个管理脚本,用于从wordpress生成的xml文件导入博客文章。有关详细信息,请运行/manage.py wordpress_import。
###取消
支持[取消](https://disqus.com/)注释(并推荐)。
###摘录
作者可以手动指定要用作文章摘要的内容。如果他们选择不这样做,他们可以选择显示一个摘录,这是自动生成的截断博文正文。
###加价
帖子可以用传统的html、纯文本或任意数量的标记语言编写(建议使用[标记](http://daringfireball.net/projects/markdown/)。
如果使用降价,那么[django wmd](https://github.com/pigmonkey/django-wmd/)将提供令人愉快的写作体验。
要求
- [django inlineobjects](https://github.com/pigmonkey/django-inlineobjects)是在博客文章中包含内容对象所必需的。
- 搜索帖子需要[django simplesearch](https://github.com/pigmonkey/django-simplesearch)。
- 标记需要[django taggit](https://github.com/alex/django-taggit)。
- 生成标记云需要[django taggit templatetags](https://github.com/feuervogel/django-taggit-templatetags)。
- 标记语言支持需要[django markup](https://github.com/bartTC/django-markup/>;)。
- 标记支持需要[python标记库](http://packages.python.org/Markdown/)。(可以禁用降价支持,但它是默认选择。如果用户没有另外指定,则所有贴子都会加上标记。)
- 必须安装[django comment framework](https://docs.djangoproject.com/en/dev/ref/contrib/comments/),除非启用了disfs支持(见下文)。
###建议
不需要以下包装,但建议充分利用Django Vellum。
- [django disfs](http://github.com/arthurk/django-disqus)建议用于[disfs](https://disqus.com/)-powered注释。
- [smartypants](http://pypi.python.org/pypi/smartypants)建议用于智能排版(卷曲引号、en-和em破折号、省略号等)。
- [django wmd](https://github.com/pigmonkey/django-wmd/)建议用于增强的[markdown](http://daringfireball.net/projects/markdown/)体验。
- [django media](https://github.com/pigmonkey/django-media)可以与(前面提到的)django inlineobjects结合使用,以便在帖子中包含照片。
安装
Django Vellum在Pypi上可用,可以与PIP一起安装。
pip install django-vellum
或者,您可以下载来源并安装。
python setup.py install
设置
- 将Vellum添加到您的设置中。已安装的应用程序。
- 将vellum.context_processors.blog_settings添加到settings.template_context_processors中。