Git Product home page Git Product logo

djblog's Introduction

介绍

一个基于 django 开发的 blog 程序,演示站点:ichuan.net。特性包括:

  1. HTML5
  2. 手持设备访问优化
  3. Disqus 评论系统集成
  4. Markdown 语法写作
  5. 标签
  6. 单页面
  7. 友情链接
  8. Google Analytics 集成
  9. 主题
  10. RSS
  11. Google 自定义搜索

依赖

  1. markdown: https://github.com/waylan/Python-Markdown/
  2. django >= 1.3

安装步骤

  1. 创建数据库,例如 mysql 数据库:$ mysql -u root -proot -e 'create database blog'
  2. 拷贝 local_settings.default.pylocal_settings.py,修改里面的数据库配置。还有其他配置可以改
  3. 执行 python manage.py syncdb 同步数据库
  4. 执行 python manage.py runserver 0.0.0.0:8000 启动临时服务器
  5. 浏览器访问 http://localhost:8000,后台地址是 http://localhost:8000/admin/,口令在第 3 步时创建
  6. 在后台的sites里更改默认的example.com为你自己的域名(RSS输出中的链接会使用到)

自定义主题

主题放在 templates/ 目录下,一个目录是一个主题,classic 为默认主题,可参考这个制作新主题。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.