[portland] Werkzeug, web, testing, etc. discussion
Michael Schurter
michael at susens-schurter.com
Wed Feb 4 20:52:20 CET 2009
On Wed, Feb 4, 2009 at 11:49 AM, Joshua D. Drake <jd at commandprompt.com> wrote:
> On Wed, 2009-02-04 at 11:33 -0800, Michael Schurter wrote:
>> On Wed, Feb 4, 2009 at 10:37 AM, Adam Lowry <adam at therobots.org>
>> wrote:
>
>> 2. Django
>>
>> Django for everything... thrilling huh? Traditional setup.py style deployment.
>>
>
> Has Django fixed its ORM yet? Last I checked it lacked the ability to
> properly handle primary keys.
While Django's ORM is definitely nothing to brag about compared to
SqlAlchemy and other more powerful Python ORM's, it definitely handles
primary keys just fine:
Defining:
http://docs.djangoproject.com/en/dev/ref/models/fields/#primary-key
Querying by:
http://docs.djangoproject.com/en/dev/topics/db/queries/#the-pk-lookup-shortcut
More information about the Portland
mailing list