Skip to content

Instantly share code, notes, and snippets.

@zhixingchou
Last active January 5, 2018 02:06
Show Gist options
  • Save zhixingchou/38c282cea3e9d283503324dd19cd9176 to your computer and use it in GitHub Desktop.
Save zhixingchou/38c282cea3e9d283503324dd19cd9176 to your computer and use it in GitHub Desktop.
Django
  • 站点地图

  • 支持markdown,代码高亮

  • 全文索引


  • 页面侧边栏:使用自定义模板标签

    Django provides the following helper functions that allow you to create your own template tags in an easy manner:

    simple_tag: Processes the data and returns a string
    inclusion_tag: Processes the data and returns a rendered template
    assignment_tag: Processes the data and sets a variable in the context
    Template tags must live inside Django applications.

    https://www.zmrenwu.com/post/12/

    https://github.com/liangliangyy/DjangoBlog


  • liangliangyy/DjangoBlog

    https://github.com/liangliangyy/DjangoBlog

      文章,页面,分类目录,标签的添加,删除,编辑等。文章及页面支持Markdown,支持代码高亮。
      支持文章全文搜索。
      完整的评论功能,包括发表回复评论,以及评论的邮件提醒,支持Markdown。
      侧边栏功能,最新文章,最多阅读,标签云等。
      支持Oauth登陆,现已有Google,GitHub,facebook,微博登录。
      支持Memcache缓存,支持缓存自动刷新。
      简单的SEO功能,新建文章等会自动通知Google和百度。
      集成了简单的图床功能。
      集成django-compressor,自动压缩css,js。
      基于python3,支持Django多版本。Django的1.8,1.9,1.10,1.11均测试通过。
      网站异常邮件提醒,若有未捕捉到的异常会自动发送提醒邮件。
      集成了微信公众号功能,现在可以使用微信公众号来管理你的vps了。
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment