PythonPython tip

Instead of:

if one == None or two == None or three == None:
    pass

use

if None in (one, two, three):
    pass

or

if any([x == None for x in one, two, three]):
    pass

Read full entry

python tip | July 31, 2011, 2:58 a.m.

DjangoDjango nonrelational batch support

I have implemented custom backend for Django, that let you use batch operations with Django and Google App Engine. You should be aware that API is not stable yet and I did not get official approval from django-nonrel team yet (although there is some progress).

Read full entry

batch-operations django django-nonrel | April 5, 2011, 10:19 a.m.

LinksLinks for Jan. 9, 2011

Read full entry

django google-app-engine python | Jan. 9, 2011, 11:25 a.m.

LinksLinks for Nov. 11, 2010

Read full entry

python | Nov. 11, 2010, 7:50 a.m.

LinksLinks for Nov. 2, 2010

  • Python Module of the Week

    PyMOTW is a series of blog posts written by Doug Hellmann. It was started as a way to build the habit of writing something on a regular basis. The focus of the series is building a set of example code for the modules in the ...

Read full entry

google-app-engine python | Nov. 2, 2010, 7:05 a.m.

LinksLinks for Oct. 27, 2010

Read full entry

django google-app-engine mysql python | Oct. 27, 2010, 2:31 p.m.

LinksLinks for Oct. 21, 2010

Read full entry

dev etc python unicode | Oct. 21, 2010, 4:21 p.m.

DjangoSplit django settings

Related links:

Some points

  • I don't see any sense "to move sensitive or machine/user specific settings like database passwords and such out of the main settings.py file". What's the point to share incomplete ...

Read full entry

django python | Sept. 23, 2010, 10:16 a.m.