Code Monkey home page Code Monkey logo

flasky's Introduction

Flasky

  • 基于Python Flask框架的博客程序

  • 参考*《O'REILLY 系列丛书 Flask Web开发》*--基于Python的Web应用开发实战

  • 完成于2016年12月10日

##安装方法

  1. 安装虚拟环境,执行pip install -r requirements.txt进行环境配置
  2. 修改config.py中的数据库地址进行连接数据库并修改FLASKY_ADMIN选项为管理员的邮箱
  3. 执行python manage.py db init初始化数据库
  4. 执行python manage.py db migrate提交数据库版本
  5. 执行python manage.py db upgrade更新数据库信息
  6. 执行python manage.py shell打开Shell 并执行Role.insert_roles()更新用户角色信息
  7. 执行python manage.py runserver进行启动服务器
  8. 使用FLASKY_ADMIN中填写的用户进行注册

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.