Django Hack-a-thonで聞かれて口頭で答えたのを今思い出したので書いておく。 僕はsettings.pyのINSTALLED_APPSの設定の後にこう書いてる。 IS_LOCAL = os.environ.get('SERVER_SOFTWARE', '').startswith('Dev') if not IS_LOCAL: INSTALLED_APPS.remove("myapp")
ナウでヤングな Pythonista はテストは nose を使うみたいなのです。 良くわかりませんがそういうものです。 事前処理と事後処理 DB の初期化とかテストの事前処理や事後処理はないと困っちゃいますが、 nose ではこんな風に書きます。 def setup_func(): # ... def teardown_func(): # ... @with_setup(setup_func, teardown_func) def test(): # ... デコレータ以外にも色々やり方はあります。 http://somethingaboutorange.com/mrl/projects/nose/0.9.3/ pit と併用して使う 外部の API と連携してるテストなどをやりたい時に いつも使ってる pit の環境汚したく無いなぁなんて時は プロファイルを切り変えられるので それを呼
Unleash Django with app-engine-patch This article was written and submitted by an external developer. The Google App Engine team thanks Jesaja Everling for his time and expertise. Jesaja Everling February 2009 Introduction The Django framework can make your life as a web developer a lot easier. It takes care of a lot of common problems web developers have to deal with, and offers many "reusable a
Djangoでは、Webアプリ以外にバッチ処理を実装することができます。 バッチ処理は、manage.pyのオプション処理として実現します。 実装するバッチ処理は「アクション」と呼ばます。 アクションをmanage.pyに追加するには、プロジェクトディレクトリorアプリケーションディレクトリ 直下に「management/commands」というディレクトリを作成し、commands配下にアクションを実行する スクリプトを実装することで実現されます。 例えば、「hogeapp」というアプリケーションディレクトリに「hoge_action」というアクションを 実装する場合、以下のようにファイルを作成します。 $ cd hogeapp $ mkdir management $ mkdir management/commands $ touch management/__init__
Index¶ This is a collection of patterns which we have found occuring commonly with Django. All of these either make collaboration easier, coding simpler or code more maintainable. None of them are design patterns in the sense of GoF design patterns. We call them design patterns as none other seem closer or more convinient. These are guidelines, which need to be overriden (very commonly, in some ca
Djangoのユーザ認証は、ユーザ名とパスワードにて行いますが メールアドレスとパスワードを利用した認証をするシステムを作りたい場合があります。 django-emailauthを使って構築してみたいと思います。 仕様 1ユーザに対し多メールアドレスに対応。 登録URLは'/register/'とします。 ログインURLは'/login/'とします。 導入 まず、Downloadsからzipもしくはtgzファイルをダウンロードし、解凍し配置してください。 settings.pyの'INSTALLED_APPS'に登録します。 settings.py … INSTALLED_APPS = ( … 'emailauth', … ) 'django.contrib.auth.models.User'だけでなく、'UserEmail'モデルを作成するため manage.py syncdb を
In this tutorial I will show you how to get a simple datastore-backed Django application up and running on the Google App Engine. I will assume that you are somewhat familiar with Django. Update 1: You can download the full set of files from here. Make sure to fix the sys.path in main.py. Update 2: There is now a Turkish translation of this tutorial, courtesy of Türker Sezer. Update 3: Now in Russ
Visit the Package Store Enhance your Review Board experience with extensions and products by the Review Board project and third-parties. Developing an extension or tool that works with Review Board? Share it with the world! What's new in 6.0.2 The full list of changes is available in the release notes. To keep up with the latest releases, sign up for the mailing list. Older releases can be downloa
和訳について このドキュメントは、 Django の標準ドキュメント の和訳です。 現在、和訳は Yasushi Masuda によって進められており、 Takanao Endoh をはじめとする日本 Django ユーザ会の有志の手でメンテナンスされています。 和訳に関する問い合わせは、 Django プロジェクトのトラッカではなく 、 Yasushi Masuda (whosaysni-at-gmail.com) または django-ja メーリングリストにお寄せくだ さい。 助けを求める¶ 困り事ですか?手を貸しましょう! よくある質問への答えは、 FAQ にあります。 特定のトピックについて情報を探しているなら、 Index や Module Index , 詳細目次 を見てくだ さい。 django-users メーリングリスト でアーカイブ を探したり、 質問をポスト してみ
Captcha security check superjared.com is for sale Please prove you're not a robot View Price Processing
Author: kylefox Posted: May 26, 2007 Language: HTML/template Version: Not specified Score: 10 (after 10 ratings) Download Raw This adds a checkbox for each object and three buttons to a model's change list: Delete selected: deletes the selected objects Delete shown: deletes all the visible objects. For example, if you perform a search or in any way filter the list, this button deletes only objects
NAME HTML::Shakan::Doc.ja.pod - Japanese doc. CONCEPT I cannot write long document in English. If you want to read this document, please use Google translate or other stuff. 英語かくのがつらいので日本語でコンセプトをしるす。 Django の newforms みたいなライブラリが欲しい、というのが出発点でした。 Django をみていて、フォームの HTML を生成することができる validation ライブラリが欲しくなったのでした。 HTML::FormFu が存在することは前から知っていたのですが、「やたらとクラス数が多い」という点がまずひっかかりました。なぜフォームの生成/バリデーションのライブラリに Cr
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く