Coder Social home page Coder Social logo

flask-blog's Introduction

flask-blog

基于Python Flask框架的实现的个人博客系统

主要特性

  • 内置模型:栏目、标签、文章、评论等
  • 数据库:使用SQLAlchemy驱动,主要支持SQLITE和Mysql两种数据库
  • 编辑器:集成editor.md Markdown编辑器
  • 后台管理:使用Flask-Admin管理后台,功能强大,简单易用

主要依赖的 Flask 扩展插件

  • Flask-SQLAlchemy 数据库模型
  • Flask-Admin 后台管理
  • Flask-Login 用户登录

DEMO

http://blog.adisonhyh.com/

部署

本地环境

本地环境通过 pip + virtualenv 方式部署.

安装依赖:

使用 requirements/common.txt 来安装依赖, 本地环境默认使用SQLite数据库:

pip install -r requirements/common.txt

运行程序:

如果通过 virtualenv 来运行程序, 需要先激活虚拟环境.

初始化数据库:

python manage.py db init 
python manage.py db migrate -m "init"
python manage.py db upgrade        

初始化

python manage.py deploy

运行程序:

python manage.py runserver

若需要强制开启 debug 和 reload 的模式, 请加上参数 -d -r.

线上部署

CentOS 部署 flask项目

主题

基于keep it simple修改

flask-blog's People

Contributors

adisonhuang avatar

Watchers

James Cloos 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.