Coder Social home page Coder Social logo

mybolg's Introduction

myblog

本blog系统后端使用python编写,基于flask框架+mysql数据库,前端html5+bootstrap。

基本功能:

支持后台管理与登录,管理文章,分类,标签,用户,文件,友链等,支持富文本编辑器或markdown编辑器进行文章编辑

演示地址:NoGameNoLife's Blog

腾讯云部署:http://bugcoding.com/entry/14

SAE部署:

1.申请 SAE 开发账号, 创建Python Web应用

2.进入SAE应用管理控制台

3.在服务管理中创建SAE云存储 domain, 记下 domain名字

4.阅读SAE相关文档进行部署 SAE python文档

配置运行:

配置MYSQL等(在部署在SAE上的话,直接从sae.const导入配置即可)

邮箱配置:输入使用的服务器地址,端口和账号,密码

开启调试模式:DEBUG = Ture(正式运行时请关闭)

配置文章编辑器:ARTICLE_EDITOR = 'simplemde' 或者 ARTICLE_EDITOR = 'ckeditor' #使用Simplemde markdown编辑器或者ckeditor富文本编辑器

配置注册码(注册账号时需要使用):REGISTRATION_CODE

创建数据表: $ python data_model.py

运行blog : $ python blogapp.py

进入blog后台: 进入 http://localhost:5005/admin

点击register进行注册(需要输入配置的注册码)

退出之后即可用注册的账号登录

评论使用的多说评论系统:

使用方法:注册多说,在首页里面选择我要安装,填写好资料。进入你的多说后台。获得你的多说的JS代码

并且把templates/blog(项目代码)里面的的模板(.html)中使用多说JS的代码替换成自己的就ok了

更多操作可以查看文档:多说

运行环境和第三方依赖库:

python = 2.7

Flask = 0.10.1

Flask-SQLAlchemy = 2.0

Flask-Admin = 1.1.0

Flask-Login = 0.2.11

Flask-WTF = 0.11

Sqlalchemy = 0.9.8

Sqlalchemy-migrate = 0.9.4

Wtforms = 2.0.2

mybolg's People

Contributors

nogamenolife00 avatar

Watchers

 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.