DjangoBlog
🍺基于Django的博客系统
A self-hosted blogging platform built with Django and Python, covering Markdown writing, comments, social login, Redis caching, and automatic search-engine notifications, deployable via Docker or Kubernetes.
DjangoBlog is a full-featured blogging platform you can host yourself, built with Python and a web framework called Django. If you want to run your own blog without depending on services like WordPress.com or Medium, this gives you the software to do it on your own server. It has been around long enough to gather over 7,000 stars on GitHub, which suggests a fairly active community of people using and contributing to it.
The platform covers everything you would expect from a modern blog: writing and publishing articles, organizing posts by category and tag, a comment section where readers can reply to each other, and a sidebar you can configure to show recent posts, most-read articles, or a tag cloud. Authors write in Markdown, a simple text format that lets you add bold, headings, and code blocks without touching HTML. The built-in editor highlights code automatically, which is useful for technical writing.
Search is handled by either Whoosh (a lightweight option that needs no extra setup) or Elasticsearch (a heavier tool suited for larger sites). Social login is built in, so visitors can sign in with Google, GitHub, Facebook, Weibo, or QQ without creating a separate account. The site supports light and dark themes and can switch automatically based on a visitor's system setting.
On the performance side, DjangoBlog uses Redis to cache pages so repeat visitors get fast responses without hitting the database every time. It also notifies Google and Baidu automatically when new content is published, which helps with search indexing. The plugin system lets you add features such as view counting, reading-time estimates, image lazy loading, and Cloudflare cache management without touching the core code.
Deployment is supported via a traditional server setup, Docker containers, or Kubernetes. The README is written almost entirely in Chinese, so non-Chinese readers may need a translation tool to follow the setup instructions. The project is released under the MIT license, meaning you can use and modify it freely.
Where it fits
- Host your own blog with Markdown editing, threaded comments, dark mode, and Google or GitHub social login without paying a third-party platform.
- Deploy a production blog with Redis page caching and Elasticsearch full-text search on your own server or a Docker host.
- Automatically notify Google and Baidu when you publish new posts to speed up search engine indexing.