Subdomain-based configuration for a Flask local development server This example shows how to set up a Flask local development server to use a different configuration based on the subdomain of the request. The project I work on has several environments (dev, qa, staging, etc). Each environment has different database and API hostnames. I use this to switch between database and API environments quick
Flask-Stormpath¶ Flask-Stormpath is an extension for Flask that makes it incredibly simple to add users and user data to your application. It aims to completely abstract away all user registration, login, authentication, and authorization problems, and make building secure websites painless. And the best part? You don’t even need a database! Note Unfortunately, this library will NOT work on Google
大晦日にガキ使見ながらクソアプリを作ってHerokuにホストした http://otoshidama.herokuapp.com/ こういうクソアプリは簡単に作れて、簡単にホストできないといけない。PythonのWAFはDjangoとかPyramidとか色々あるけど、個人的に最近はFlaskが好き。クソアプリ作るのにDjangoでゴニョゴニョ設定ファイルいじったりするの面倒だし、クソアプリにとっては余計な機能が多い。その点、Flaskはシンプルで良い。ホスティングサービスはAppEngineとかあるけど、Herokuのほうが何か格好いいし、使ってみてすごく簡単だった。 というわけで、これからもFlask + Herokuの組合せは使いそうなのでメモしておく。 Herokuのセットアップ Herokuの登録はメールアドレスだけでいいので一瞬で終わる。 そのあとHeroku Toolbeltを
Watch Now This tutorial has a related video course created by the Real Python team. Watch it together with the written tutorial to deepen your understanding: Creating a Scalable Flask Web Application From Scratch Flask is a powerful and flexible micro web framework for Python, ideal for both small and large web projects. It provides a straightforward way to get a web application up and running, wi
予定と実績¶ Flaskを使う準備 20分 -> 60分 Flaskチュートリアル 40分 -> 60分 休憩 15分 Flaskを使いこなす1 40分 -> 60分 アプリを公開する 20分 -> 20分 休憩 15分 Flaskを使いこなす2 30分 -> 30分 プラグイン、情報源紹介、Q/A、予備 -> 10分
Pythonで今一番熱そうなWSGIコンテナのuWSGIというものをインストールしてみたんだけど、virtualenvと組み合わせた時にちょっとはまったのでメモ。 前提 Pythonは2.6 virtualenv(wrapper)を使って /usr/local/virtualenvs 配下に flask という環境を作っている flask には Flask や Jinja2 などアプリの実行に必要なものがインストールされている 実行するアプリは /var/www/wiki-converter にディプロイされている(wiki-converterのソース) uWSGIのインストール $ workon flask $ pip install uwsgi でいける。 uWSGIの起動 まずは本格的なアプリを起動する前にQuickstartに書いてあるhello world的なものを試しみる。 #
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く