Code Archive Skip to content Google About Google Privacy Terms
Yasushi Masuda (ymasuda at ethercube dot com), Takanao Endoh (takanao at endoh dot tk)
***** IMPORTANT ***** The plugin has now been split into two separate vimballs. The plugin itself and the bundles. This was done because bundles were updated a lot more often than the plugin itself. Previous users of the plugin should delete the old file when upgrading to 1.0. The name of the file changed in 0.6 and so you'll end up with two versions when unpacking the file. Remove the old version
DjangoのORMがどんなSQLを実行しているか、ずっと気になっていたのですが、ようやく、トレースを表示する方法が分かりました。 settings.pyで DEBUGをTrueにする INTERNAL_IPSにデバッグ・コンテクスト・プロセッサを有効にするアドレスを設定 コンテクスト・プロセッサにdjango.core.context_processors.debugを追加 これでOK。具体的には、settings.pyに次のように記述します。 # settings.py DEBUG = True INTERNAL_IPS = ('127.0.0.1', ) TEMPLATE_CONTEXT_PROCESSORS = ( 'django.core.context_processors.debug', ) 後は、テンプレートの適当な場所に、 {{ sql_queries }} という、テン
Python Workshop the Edge2006 の懇親会で、「SQLのデバッグアウト」機能はないのかという話があったので、Middlewareをちょいと書いてみました(MagicRemoval 2509で動作確認)。 単にDjangoデフォルトで持っているデバッグ情報をprintするだけです。 エラー処理とかしていません。 また、DEBUGをTrueにしてあるときのみ出力します。 django.middlewareにdebug.pyというファイル名で作ってください。 作ったら、あとはsettings.pyのMIDDLEWARE_CLASSESに"django.middleware.debug.DBDebugMiddleware"を追加するだけです。 Create file named debug.py as below,and put it under django/
djangoべからず集 (訳者注:この文書のオリジナルは django-project にあります。Djangoのドキュメントは非常に頻繁に更新が行われますので、こちらの日本語訳文書は古い可能性があります) Djangoアプリケーションを書くためのガイドです。目指しているのは次のような物です。 ユーザがアプリケーションをインストールするのが簡単であること アプリケーションは別のアプリケーションと美しく共存できること 私の提案するガイドラインにコメントや議論をください。 Djangoコミュニティにいる誰もが賛同してくれる物になってくれることを願っています。 このドキュメントを通して想像上のアプリケーションに言及します。 アプリケーションの名前はmnemosyne(訳注:ギリシャ神話の智の女神)としましょう。 mnemosyneアプリケーションはibofobi.appsに配置します。 パスに言
Paginator Tag This is a very basic inclusion tag which builds on the variables already set on the context when paginating with the generic object_list view to allow you to create pagination controls which display first/last page links and links for a number of pages adjacent to the current page. The following additional context variables are created: page_numbers: A list of page numbers (in ascen
Welcome to Djangosnippets.org, a site for users of the Django web framework to come together and share useful "snippets" of reusable code. If you're just here to browse, you can look through snippets organized by author, by language or by tag. You can also have a look at the top-rated snippets and the most-bookmarked snippets. If you'd like to contribute, sign up for a free account and you'll be a
Type ":setfiletype htmldjango" from within Vim to select highlighting for Django HTML templates. If you desire Django template highlighting but not HTML highlighting, type ":setfiletype django" instead. Items highlighted include template tags, built-in filters, arguments and comments. (N.B. For Vim 7.1 and later you shouldn't need the additional htmldjango.vim file.)
MOD_WSGI The mod_wsgi adapter is an Apache module that provides a WSGI compliant interface for hosting Python based web applications within Apache. The adapter is written completely in C code against the Apache C runtime and for hosting WSGI applications within Apache provides significantly better performance relative to existing Python based WSGI adapters for mod_python and CGI. The module can be
Welcome to the new documentation. We've recently reorganized the documentation, and you requested an out-of-date page. We've tried to redirect you to the right place, but we might have gotten it wrong. If you can't find what you're looking for here, you might try searching for it. Django’s cache framework¶ A fundamental trade-off in dynamic Web sites is, well, they’re dynamic. Each time a user req
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く