I'm an eighteen-year old student from Nepal interested in computers and technology. Twitter Email Github Feed I had some difficulty in grasping how exactly to set up a server when I tried to do so recently, so I decided to write a tutorial that will guide you through the process. Hopefully, this post will help you avoid at least some of the confusion that I encountered. We'll be using Nginx +
Python Web フレームワーク アドベントカレンダー2010のバトンが回ってきましたので、書いてみます。 Sphinx version 1.1から、WebSupportというものが入りました。これは、sphinxのドキュメントをWebサーバにつなぎ、コメントや変更の提案、投票といった機能を追加してくれます。 これ単体だとWebフレームワークとは言い切れませんが、まあ誤差の範囲ということで許してください。 概要把握: 動作している様子 WebSupport開発者のJacob Masonさんが提供しているデモサイトです。これを見て雰囲気を掴んでください。 http://www.jacobmason.com/demo/contents ちなみにこのソースはbitbucketで公開されています。 必要なライブラリ WebSupportはコメントなどをsqliteのDBに保存しますので、それを
This post has been published more than 12 years ago, it may be obsolete by now. It’s been a long time I wanted to federate my online identities in a single, managed place — hence the website you’re currently browsing. I’ve also been looking for a static website builder for some times, trying many and retaining zero. It was a bit depressing, frustrating to say the least. Then I encountered this twe
さて、先日 http://d.hatena.ne.jp/atsuoishimoto/20120503/1336050988 を紹介したが、Flaskアプリケーションの Blueprint 機能を使うと正しく動作しないようだ。Blueprintでは独自にテンプレートや静的ファイルのディレクトリを指定できるようになっているため、こちらも対処する必要があるのだ。 ということで、 class ResourceMixin(object): PACKAGENAME = "demo_pkgrsrc" @helpers.locked_cached_property def jinja_loader(self): return loaders.PackageLoader(self.PACKAGENAME, self.template_folder) def send_static_file(self, fi
アプリケーションを作成して配布するとき、配布するのは複数のファイルやディレクトリではなく、ファイル一つだけで済ませることができたらそれに越したことはないだろう。Pythonには cx_Freeze や py2exe のような、プラットフォーム固有な実行可能ファイルを開発するための環境も揃っているが、ここではもうちょっとライトに、Pythonの実行環境があれば実行できる zip ファイルの作り方を紹介したい。例として、flaskを使った簡単なWebアプリケーションを作ってみよう。 尚、ここで作成したファイルは https://github.com/atsuoishimoto/demo_pkgrsrc に置いてあるのでご参照いただきたい。 リソースファイルの使い方 普通、アプリケーションにはスクリプトファイル以外にいろんなファイルが含まれる。この例のようなWebアプリケーションではHTMLやC
I am having a hard time trying to modify the Flask request object before routing occurs. My API Module (not my entire Flask app) depends on faking PUT and DELETE operations by sending a special header. I need to check out the contents of the "-Method" header and modify the Flask Request object accordingly, before Flask does its routing. This is the short, pythonic, explicit code I'd like to work:
I’m using flask, pystache and bootstrap in order to build a fast prototype. I’ve already written a little about this but the text was getting long in the tooth so I cut it off short of a complete description. I decided to break the work into a separate text… as it’s more manageable. Some of these instructions will vary if you are using virtualenv. - download bootstrap cd ${HOME} mkdir -p git cd ${
Pleased to annouce small, yet powerful administrative interface building framework for Flask. Flask-AdminEx is not limited to model scaffolding - you can implement interface of any complexity. And it comes with few batteries built in: SQLAlchemy model scaffolding and simple file management interface. Here's simple model interface: from flask import Flask from flaskext.sqlalchemy import SQLAlchemy
I am looking for a comparison of django and flask for a project that will live for a long time, and will need to be maintained, built upon and grow as the months progress. I am considering Flask + SQLAlchemy or django. I do not need batteries, as I usually end up having to modify them, so it is fine if I have to re-implement a couple of wheels to make it do exactly what I need. I prefer the coding
Flask-Security¶ Flask-Security allows you to quickly add common security mechanisms to your Flask application. They include: Session based authentication Role management Password hashing Basic HTTP authentication Token based authentication Token based account activation (optional) Token based password recovery / resetting (optional) User registration (optional) Login tracking (optional) JSON/Ajax
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く