はてなブックマークアプリ

サクサク読めて、
アプリ限定の機能も多数!

アプリで開く

はてなブックマーク

  • はてなブックマークって?
  • アプリ・拡張の紹介
  • ユーザー登録
  • ログイン
  • Hatena

はてなブックマーク

トップへ戻る

  • 総合
    • 人気
    • 新着
    • IT
    • 最新ガジェット
    • 自然科学
    • 経済・金融
    • おもしろ
    • マンガ
    • ゲーム
    • はてなブログ(総合)
  • 一般
    • 人気
    • 新着
    • 社会ニュース
    • 地域
    • 国際
    • 天気
    • グルメ
    • 映画・音楽
    • スポーツ
    • はてな匿名ダイアリー
    • はてなブログ(一般)
  • 世の中
    • 人気
    • 新着
    • 新型コロナウイルス
    • 働き方
    • 生き方
    • 地域
    • 医療・ヘルス
    • 教育
    • はてな匿名ダイアリー
    • はてなブログ(世の中)
  • 政治と経済
    • 人気
    • 新着
    • 政治
    • 経済・金融
    • 企業
    • 仕事・就職
    • マーケット
    • 国際
    • はてなブログ(政治と経済)
  • 暮らし
    • 人気
    • 新着
    • カルチャー・ライフスタイル
    • ファッション
    • 運動・エクササイズ
    • 結婚・子育て
    • 住まい
    • グルメ
    • 相続
    • はてなブログ(暮らし)
    • 掃除・整理整頓
    • 雑貨
    • 買ってよかったもの
    • 旅行
    • アウトドア
    • 趣味
  • 学び
    • 人気
    • 新着
    • 人文科学
    • 社会科学
    • 自然科学
    • 語学
    • ビジネス・経営学
    • デザイン
    • 法律
    • 本・書評
    • 将棋・囲碁
    • はてなブログ(学び)
  • テクノロジー
    • 人気
    • 新着
    • IT
    • セキュリティ技術
    • はてなブログ(テクノロジー)
    • AI・機械学習
    • プログラミング
    • エンジニア
  • おもしろ
    • 人気
    • 新着
    • まとめ
    • ネタ
    • おもしろ
    • これはすごい
    • かわいい
    • 雑学
    • 癒やし
    • はてなブログ(おもしろ)
  • エンタメ
    • 人気
    • 新着
    • スポーツ
    • 映画
    • 音楽
    • アイドル
    • 芸能
    • お笑い
    • サッカー
    • 話題の動画
    • はてなブログ(エンタメ)
  • アニメとゲーム
    • 人気
    • 新着
    • マンガ
    • Webマンガ
    • ゲーム
    • 任天堂
    • PlayStation
    • アニメ
    • バーチャルYouTuber
    • オタクカルチャー
    • はてなブログ(アニメとゲーム)
    • はてなブログ(ゲーム)
  • おすすめ

    ブラックフライデー

『Welcome | Flask (A Python Microframework)』

  • 人気
  • 新着
  • すべて
  • Welcome to Flask — Flask 1.0.2 documentation

    10 users

    flask.palletsprojects.com

    Warning: This is an old version. The latest stable version is Version 2.1.x. Welcome to Flask¶ Welcome to Flask’s documentation. Get started with Installation and then get an overview with the Quickstart. There is also a more detailed Tutorial that shows how to create a small but complete application with Flask. Common patterns are described in the Patterns for Flask section. The rest of the docs

    • テクノロジー
    • 2018/10/22 13:35
    • flask
    • python
    • framework
    • Configuration Handling — Flask Documentation (3.1.x)

      3 users

      flask.palletsprojects.com

      Configuration Handling¶ Applications need some kind of configuration. There are different settings you might want to change depending on the application environment like toggling the debug mode, setting the secret key, and other such environment-specific things. The way Flask is designed usually requires the configuration to be available when the application starts up. You can hard code the config

      • テクノロジー
      • 2018/07/10 02:38
      • Flask
      • 設定
      • Python
      • Quickstart — Flask Documentation (3.1.x)

        7 users

        flask.palletsprojects.com

        Quickstart¶ Eager to get started? This page gives a good introduction to Flask. Follow Installation to set up a project and install Flask first. A Minimal Application¶ A minimal Flask application looks something like this: from flask import Flask app = Flask(__name__) @app.route("/") def hello_world(): return "<p>Hello, World!</p>" So what did that code do? First we imported the Flask class. An in

        • テクノロジー
        • 2018/07/06 00:18
        • Flask
        • Python
        • API — Flask Documentation (3.1.x)

          4 users

          flask.palletsprojects.com

          API¶ This part of the documentation covers all the interfaces of Flask. For parts where Flask depends on external libraries, we document the most important right here and provide links to the canonical documentation. Application Object¶ class flask.Flask(import_name, static_url_path=None, static_folder='static', static_host=None, host_matching=False, subdomain_matching=False, template_folder='temp

          • テクノロジー
          • 2017/08/23 18:28
          • Share
          • python
          • Uploading Files — Flask Documentation (3.1.x)

            4 users

            flask.palletsprojects.com

            Uploading Files¶ Ah yes, the good old problem of file uploads. The basic idea of file uploads is actually quite simple. It basically works like this: A <form> tag is marked with enctype=multipart/form-data and an <input type=file> is placed in that form. The application accesses the file from the files dictionary on the request object. use the save() method of the file to save the file permanently

            • 暮らし
            • 2017/08/01 12:27
            • Modular Applications with Blueprints — Flask Documentation (3.1.x)

              5 users

              flask.palletsprojects.com

              Flask uses a concept of blueprints for making application components and supporting common patterns within an application or across applications. Blueprints can greatly simplify how large applications work and provide a central means for Flask extensions to register operations on applications. A Blueprint object works similarly to a Flask application object, but it is not actually an application.

              • テクノロジー
              • 2017/02/18 22:38
              • Background Tasks with Celery — Flask Documentation (3.1.x)

                4 users

                flask.palletsprojects.com

                Background Tasks with Celery¶ If your application has a long running task, such as processing some uploaded data or sending email, you don’t want to wait for it to finish during a request. Instead, use a task queue to send the necessary data to another process that will run the task in the background while the request returns immediately. Celery is a powerful task queue that can be used for simple

                • テクノロジー
                • 2013/12/06 23:54
                • celery
                • tech
                • python
                • Caching — Flask Documentation (3.1.x)

                  3 users

                  flask.palletsprojects.com

                  Caching¶ When your application runs slow, throw some caches in. Well, at least it’s the easiest way to speed up things. What does a cache do? Say you have a function that takes some time to complete but the results would still be good enough if they were 5 minutes old. So then the idea is that you actually put the result of that calculation into a cache for some time. Flask itself does not provide

                  • テクノロジー
                  • 2011/11/08 09:36
                  • Uploading Files — Flask Documentation (3.1.x)

                    3 users

                    flask.palletsprojects.com

                    Uploading Files¶ Ah yes, the good old problem of file uploads. The basic idea of file uploads is actually quite simple. It basically works like this: A <form> tag is marked with enctype=multipart/form-data and an <input type=file> is placed in that form. The application accesses the file from the files dictionary on the request object. use the save() method of the file to save the file permanently

                    • テクノロジー
                    • 2011/10/26 08:48
                    • image
                    • SQLAlchemy in Flask — Flask Documentation (3.1.x)

                      3 users

                      flask.palletsprojects.com

                      SQLAlchemy in Flask¶ Many people prefer SQLAlchemy for database access. In this case it’s encouraged to use a package instead of a module for your flask application and drop the models into a separate module (Large Applications as Packages). While that is not necessary, it makes a lot of sense. There are four very common ways to use SQLAlchemy. I will outline each of them here: Flask-SQLAlchemy Ex

                      • テクノロジー
                      • 2011/10/21 00:06
                      • flask
                      • uWSGI — Flask Documentation (3.1.x)

                        5 users

                        flask.palletsprojects.com

                        uWSGI¶ uWSGI is a fast, compiled server suite with extensive configuration and capabilities beyond a basic server. It can be very performant due to being a compiled program. It is complex to configure beyond the basic application, and has so many options that it can be difficult for beginners to understand. It does not support Windows (but does run on WSL). It requires a compiler to install in som

                        • テクノロジー
                        • 2011/10/19 23:22
                        • uwsgi
                        • flask
                        • python
                        • Modular Applications with Blueprints — Flask Documentation (3.1.x)

                          6 users

                          flask.palletsprojects.com

                          Flask uses a concept of blueprints for making application components and supporting common patterns within an application or across applications. Blueprints can greatly simplify how large applications work and provide a central means for Flask extensions to register operations on applications. A Blueprint object works similarly to a Flask application object, but it is not actually an application.

                          • テクノロジー
                          • 2011/10/11 15:59
                          • flask
                          • python
                          • Deploying with Fabric — Flask Documentation (2.0.x)

                            3 users

                            flask.palletsprojects.com

                            Deploying with Fabric¶ Fabric is a tool for Python similar to Makefiles but with the ability to execute commands on a remote server. In combination with a properly set up Python package (Large Applications as Packages) and a good concept for configurations (Configuration Handling) it is very easy to deploy Flask applications to external servers. Before we get started, here a quick checklist of thi

                            • テクノロジー
                            • 2011/05/06 11:39
                            • Fabric
                            • flash
                            • python
                            • AJAX with jQuery — Flask Documentation (3.1.x)

                              3 users

                              flask.palletsprojects.com

                              Navigation index modules | Flask Documentation (3.1.x) » AJAX with jQuery AJAX with jQuery¶ Obsolete, see JavaScript, fetch, and JSON instead. Navigation Overview Quick search © Copyright 2010 Pallets. Created using Sphinx 8.2.3.

                              • テクノロジー
                              • 2011/02/04 16:09
                              • ajax
                              • jquery
                              • Security Considerations — Flask Documentation (3.0.x)

                                8 users

                                flask.palletsprojects.com

                                Security Considerations¶ Web applications usually face all kinds of security problems and it’s very hard to get everything right. Flask tries to solve a few of these things for you, but there are a couple more you have to take care of yourself. Cross-Site Scripting (XSS)¶ Cross site scripting is the concept of injecting arbitrary HTML (and with it JavaScript) into the context of a website. To reme

                                • テクノロジー
                                • 2011/02/01 01:29
                                • json
                                • security
                                • Flask
                                • javascript
                                • tech
                                • MongoDB with MongoKit — Flask Documentation (1.1.x)

                                  4 users

                                  flask.palletsprojects.com

                                  MongoDB with MongoKit¶ MongoKit is no longer maintained. See MongoDB with MongoEngine instead.

                                  • テクノロジー
                                  • 2010/12/14 13:04
                                  • MongoDB
                                  • python
                                  • Extensions — Flask Documentation (3.1.x)

                                    6 users

                                    flask.palletsprojects.com

                                    Extensions¶ Extensions are extra packages that add functionality to a Flask application. For example, an extension might add support for sending email or connecting to a database. Some extensions add entire new frameworks to help build certain types of applications, like a REST API. Finding Extensions¶ Flask extensions are usually named “Flask-Foo” or “Foo-Flask”. You can search PyPI for packages

                                    • テクノロジー
                                    • 2010/12/02 16:36
                                    • flask
                                    • python
                                    • URL Route Registrations - API — Flask 0.9 documentation

                                      9 users

                                      flask.palletsprojects.com

                                      API¶ This part of the documentation covers all the interfaces of Flask. For parts where Flask depends on external libraries, we document the most important right here and provide links to the canonical documentation. Application Object¶ class flask.Flask(import_name, static_url_path=None, static_folder='static', static_host=None, host_matching=False, subdomain_matching=False, template_folder='temp

                                      • テクノロジー
                                      • 2010/11/11 17:31
                                      • flask
                                      • python
                                      • tech
                                      • api
                                      • Templates — Flask Documentation (3.1.x)

                                        6 users

                                        flask.palletsprojects.com

                                        Templates¶ Flask leverages Jinja as its template engine. You are obviously free to use a different template engine, but you still have to install Jinja to run Flask itself. This requirement is necessary to enable rich extensions. An extension can depend on Jinja being present. This section only gives a very quick introduction into how Jinja is integrated into Flask. If you want information on the

                                        • テクノロジー
                                        • 2010/11/05 19:08
                                        • flask
                                        • python
                                        • Patterns for Flask — Flask Documentation (3.1.x)

                                          4 users

                                          flask.palletsprojects.com

                                          Patterns for Flask¶ Certain features and interactions are common enough that you will find them in most web applications. For example, many applications use a relational database and user authentication. They will open a database connection at the beginning of the request and get the information for the logged in user. At the end of the request, the database connection is closed. These types of pa

                                          • テクノロジー
                                          • 2010/11/05 17:32
                                          • flask
                                          • Testing Flask Applications — Flask Documentation (3.1.x)

                                            8 users

                                            flask.palletsprojects.com

                                            Testing Flask Applications¶ Flask provides utilities for testing an application. This documentation goes over techniques for working with different parts of the application in tests. We will use the pytest framework to set up and run our tests. The tutorial goes over how to write tests for 100% coverage of the sample Flaskr blog application. See the tutorial on tests for a detailed explanation of

                                            • テクノロジー
                                            • 2010/11/01 19:23
                                            • flask
                                            • python
                                            • Test
                                            • tech
                                            • Quickstart — Flask Documentation (3.1.x)

                                              11 users

                                              flask.palletsprojects.com

                                              Quickstart¶ Eager to get started? This page gives a good introduction to Flask. Follow Installation to set up a project and install Flask first. A Minimal Application¶ A minimal Flask application looks something like this: from flask import Flask app = Flask(__name__) @app.route("/") def hello_world(): return "<p>Hello, World!</p>" So what did that code do? First we imported the Flask class. An in

                                              • テクノロジー
                                              • 2010/07/28 04:17
                                              • flask
                                              • python
                                              • tutorial
                                              • あとで読む
                                              • Welcome | Flask (A Python Microframework)

                                                242 users

                                                flask.palletsprojects.com

                                                Welcome to Flask¶ Welcome to Flask’s documentation. Flask is a lightweight WSGI web application framework. It is designed to make getting started quick and easy, with the ability to scale up to complex applications. Get started with Installation and then get an overview with the Quickstart. There is also a more detailed Tutorial that shows how to create a small but complete application with Flask.

                                                • 暮らし
                                                • 2010/04/12 23:04
                                                • python
                                                • framework
                                                • flask
                                                • WSGI
                                                • フレームワーク
                                                • development
                                                • gae
                                                • web
                                                • github
                                                • Jinja

                                                このページはまだ
                                                ブックマークされていません

                                                このページを最初にブックマークしてみませんか?

                                                『Welcome | Flask (A Python Microframework)』の新着エントリーを見る

                                                キーボードショートカット一覧

                                                j次のブックマーク

                                                k前のブックマーク

                                                lあとで読む

                                                eコメント一覧を開く

                                                oページを開く

                                                はてなブックマーク

                                                • 総合
                                                • 一般
                                                • 世の中
                                                • 政治と経済
                                                • 暮らし
                                                • 学び
                                                • テクノロジー
                                                • エンタメ
                                                • アニメとゲーム
                                                • おもしろ
                                                • アプリ・拡張機能
                                                • 開発ブログ
                                                • ヘルプ
                                                • お問い合わせ
                                                • ガイドライン
                                                • 利用規約
                                                • プライバシーポリシー
                                                • 利用者情報の外部送信について
                                                • ガイドライン
                                                • 利用規約
                                                • プライバシーポリシー
                                                • 利用者情報の外部送信について

                                                公式Twitter

                                                • 公式アカウント
                                                • ホットエントリー

                                                はてなのサービス

                                                • はてなブログ
                                                • はてなブログPro
                                                • 人力検索はてな
                                                • はてなブログ タグ
                                                • はてなニュース
                                                • ソレドコ
                                                • App Storeからダウンロード
                                                • Google Playで手に入れよう
                                                Copyright © 2005-2025 Hatena. All Rights Reserved.
                                                設定を変更しましたx