Code Monkey home page Code Monkey logo

slx_project's Introduction

SLX_project

1. Pycharm运行配置说明

因为flask的app对象被封装在了web/_init_.py中的工厂方法create_app中,所以需要进行一些设置才可以运行

  1. 在Pycharm中对Flask server设置(可断点调试):
  2. 打开Edit Configuration
  3. 设置Target type => Script path。
  4. 设置Target => web/_init_.py的完整路径。
  5. 在cmd中设置(无法断点调试):
  6. set FLASK_APP=web
  7. flask run

以上的方法大致类似,flask的自动搜索机制会自动从FLASK_APP的值定义的模块中寻找名称为create_app()或make_app()的工厂函数

2. 第三方库

  1. Bootstrap-Flask

该库是对bootstrap4的简单封装,提供了几个常用的宏。 官网:https://bootstrap-flask.readthedocs.io/en/latest/ 2. flask-wtf

flask-wtf是对form表单的封装,带有csrf令牌的安全表单。 官网:http://www.pythondoc.com/flask-wtf/

slx_project's People

Contributors

sky94520 avatar meng950813 avatar zhangshuo1996 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.