とりあえずnginxでDjangoを動かしたいという人向けに。一応、前提としてmacコンピュータを使ってOracle VM VirtualBox などで仮想環境を作れることです。そこらへんはグーグル先生に聞いてみるなどをしてください。・使用環境:Ubuntu 10.10nginx 0.8.53MySQL 5... 続きを読む
django実践的な DJango テクニック集として、凄くいい記事だったので、勝手に超訳してみました。http://zeroandone.posterous.com/top-10-tips-to-a-new-django-developer 1. import にプロジェクト名を書かないこと例えば "project3" というプロジェクトに "xy... 続きを読む
This document is for Django's development version, which can be significantly different from previous releases. Get old docs here: 1.1, 1.0 How do I get started?¶ Download the code. Install Django (read the installation guide). Walk through t... 続きを読む
This document is for Django's development version, which can be significantly different from previous releases. Get old docs here: 1.1, 1.0 How do I get started?¶ Download the code. Install Django (read the installation guide). Walk through t... 続きを読む
動的な Web サイトの根本的なトレードオフ要因とは、まさに動的であるということ そのものです。ユーザがページをリクエストするたびに、サーバはデータベースへ のクエリからテンプレートのレンダリングやビジネスロジックといった全ての計算 を実行して、サイ... 続きを読む
レベル: 中級Ian Maurer (ian@itmaurer.com), Senior Consultant, Brulant, Inc. 2006年 6月 06日この記事は2回シリーズの第1回として、Djangoを紹介します。Djangoはオープンソースの、MVC(model-view-controller)スタイルのWebアプリケーション・フレームワ... 続きを読む
Rapid Development with Python, Django, and Google App Engine Guido van Rossum (Google) Learn how to create great web applications quickly on Google App Engine using the Django web framework and the Python language. Google App Engine lets you ... 続きを読む
DjangoでGET/POSTの片方を遮断するようなviewはデコレータでどうぞ。 from django.http import HttpResponse from django.views.decorators.http import require_GET, require_POST @require_GET def get_only(request): return HttpResponse(u'get only') @req... 続きを読む
In a previous guide I showed how to use Passenger (aka mod_rails) to work with Python (WSGI) scripts. While this proved effective for simple wsgi applications, a framework such as Django required a bit more love. This guide assume you already... 続きを読む
ミニマムな説明はこれ↓か? http://dev.osso.nl/herman/blog/2009/07/28/nginx-fastcgi-django/ nginx でキャッシュしたい場合はこれ↓か? http://d.hatena.ne.jp/karasuyamatengu/20090904/1252093710 nullpobug さんの nginx タグのブックマークがいい具合... 続きを読む
イアンに教えてもらったのも結構前なのだけど、使う場面があったのでようやく使ってみた。djangoには最初からpaginatorがあるけど、実際に使うと結構面倒くさい。django-paginationを使うとミドルウェアとテンプレートタグをちょっと書くだけでページネーション... 続きを読む
django, python, translate | 08:17 | Threading in Django | Artful Code本稿は上記リンク元の和訳になります転載ミス、誤訳等については適宜修正しますweb 開発で利便性の高いスレッドの使用方法は珍しく、特に Python のグローバルインタープリタロックと共... 続きを読む
はじめに Pythonで開発されたWebアプリケーションフレームワークであるDjango(ジャンゴと読む)はPythonの簡潔さをうまく生かし、シンプルかつ本格的な開発ができるWebアプリケーションフレームワークです。本稿の前編では、DjangoやPythonの特徴、Djangoの概... 続きを読む
[settings.py] : INTERNAL_IPS = ('127.0.0.1', ) TEMPLATE_CONTEXT_PROCESSORS = ( 'django.core.context_processors.debug', ) : [views.py] : return render_to_response('templates.html', {"datas" : datas,}, context_instance=RequestContext(request)) ... 続きを読む
Djangoはエラースクリーンが非常に充実しています。デバッグモードで例外が発生すると、エラースタックの各ポイントでの変数の中身や、近辺のソースコードを簡単に見られるようになっています。 なので、面倒なデバッグ環境の用意や、ソースコード中へのデバッ... 続きを読む
Google TechTalks April 26, 2006 Jacob Kaplan-Moss ABSTRACT Django is one of the premier web frameworks for Python, and is often compared to Ruby-on-Rails. Jacob is one of the lead developers on Django. 続きを読む
Django is a high-level web development framework designed for rapid development of database-backed web sites. Since its release three years ago Django's grown by leaps and bounds; it's now part of a highly successful new generation of web dev... 続きを読む
Python, Django, JavaScriptJavaScript 再入門から1週間弱。 JQuery で遊べるところまできた。あるフォームの内容を非同期通信するページを Django と JQuery を用いて作成する手順について自分なりに整理してみる。 Ajax 。フォームDjango でフォームを扱う方... 続きを読む
はじめに 近年、Webアプリケーション開発で用いるプログラミング言語として、Lightweight Language(以降LL)と呼ばれるスクリプト言語が人気を博しています。本稿では、そのスクリプト言語の中からPythonとWebアプリケーションフレームワークのDjango(ジャン... 続きを読む