Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Very basic Flask application with an interactive form, using Flask-WTF and Flask-Bootstrap

License

NotificationsYou must be signed in to change notification settings

macloo/flask-forms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a very basic Flask application using two routes and an interactive form. It illustrates how to useFlask-WTF andFlask-Bootstrap in a Flask app.

The code is explained inthis slide deck.

A first version of the app is inactors.py. To run it, it is assumed that you:

  1. Are using Python 3.x.

  2. Have already installed Flask and its dependencies.

  3. Have activated your virtualenv (if you are using one).

Run the app by entering its folder in Terminal and typing:

$ python actors.py

Then open your web browser and type this in the address bar:

localhost:5000/

More functionality

A second version of the app is inactors_2.py.

Run the app by entering its folder in Terminal and typing:

$ python actors_2.py

Then open your web browser and type this in the address bar:

localhost:5000/

Note that if the Flask web server was already running before this, you'll need to stop it by pressing Control-C in Terminal before you runactors_2.py.

Other Flask example files

For a similar Flask app that does not use Flask-WTF or Flask-Bootstrap, see:Flask Example

For a complete basic Flask example with more templates, see:Basic Flask App

About

Very basic Flask application with an interactive form, using Flask-WTF and Flask-Bootstrap

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp