Giter VIP home page Giter VIP logo

django_selfblog's Introduction

the5fire的技术博客源码

博客地址: http://the5fire.com

概述

本博客系统基于Django1.5.1开发而成,通过gunicorn运行于Webfaction上,Python版本为2.7.4, 更多描述看这里: 说说我这个博客的架构 ,其中Django的版本后来被升级为1.5.1的。

功能

  1. 文章、分类和页面的增删改查
  2. 通过rst格式或者html格式书写文章正文
  3. 侧边栏的组件化调整(目前比较弱)
  4. 集成多说的评论
  5. RSS和rpc
  6. 其他的自己看把,博客上能看到的功能代码都在这里了

哪些技术

主要是对Django的Class-Base View的一个实践。另外也是项目开发、部署、维护的基本流程的演练。 技术都在架构里有说。

如何使用

安装virtualenv:

sudo pip install virtualenv

创建虚拟环境:

virtualenv www

把项目放到www目录,cd到目录中,执行:

cd www
# 激活虚拟环境
source bin/active
# 安装依赖包
pip install -r requirements.txt

创建数据库或表:

# 针对sqlite3,mysql的话需要先创建数据库然后修改settings中的配置
# 在django_selfblog/selfblog目录下执行
python manage.py syncdb

运行:

# 直接运行
python manage.py runserver

#或者用gunicorn
gunicorn selfblog.wsgi:application

访问:

http://localhost:8000

帮忙改善

本来打算在完善一些代码,再发出来,怎奈有太多的东西要学习,不能立马开始完善。遂想不如拿出来让大家一起改进。

django_selfblog's People

Contributors

the5fire avatar

Watchers

 avatar  avatar

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.