Posts Tagged ‘ storage ’

Yipit Django Blog » How to Add Django Database Caching in 5 …

December 7, 2011
By

Django Tips and Best Practices. HOME · Why · Yipit on GitHub · Yipit.com · « Getting to Continuous Deployment in Django: Feature Flipping. How to Add Django Database Caching in 5 Minutes. Tweet. Ca-Ching. Milk my ...

Read more »

Django tips: Tech Model: auth issue on Windows

March 1, 2010
By

Django tips : Tech Model. Monday, March 1, 2010. auth issue on Windows. Hi, I'm trying out python+django 1.1.1 on Windows 7 and I have trouble getting django-registration working. After logging in, request.user is AnonymousUser on ...

Read more »

Django tips: Tech Model: ellipsis is not safe, use ellipsis.__new__()

March 1, 2010
By

Django tips : Tech Model. Monday, March 1, 2010. ellipsis is not safe, use ellipsis.__new__(). I've been tracking trunk on 1.2 and recently started getting this error when get_profile() is invoked: TypeError at /item/9/. object. ...

Read more »

Django tips: Tech Model: Re: update a record without typing too much

March 1, 2010
By

Django tips : Tech Model. Monday, March 1, 2010. Re: update a record without typing too much. On Feb 26, 2:35 pm, "ge...@aquarianhouse.com" wrote: > maybe like this?: > > def up(model, **kw): ...

Read more »

Django tips: Tech Model: Re: Creating fancier views

March 1, 2010
By

Django tips : Tech Model. Monday, March 1, 2010. Re: Creating fancier views. > customising templates. I am wondering if there is an easy way to > spice up certain things, such as tables, in a similar way to the admin > interface does. ...

Read more »

Django tips: Tech Model: Re: Django + Varnish. Keepalive?

March 1, 2010
By

Django tips : Tech Model. Monday, March 1, 2010. Re: Django + Varnish. Keepalive? On Mon, Mar 1, 2010 at 4:12 AM, Alessandro Ronchi wrote: > 2010/2/25 Alessandro Ronchi : ...

Read more »

Django tips: Tech Model: Re: verbose field names in admin

March 1, 2010
By

Django tips : Tech Model. Monday, March 1, 2010. Re: verbose field names in admin. When in doubt, always refer to the docs - http://docs.djangoproject.com/en/dev/ref/models/options/ There may be something small overlooked. ...

Read more »

Django tips: Tech Model: Re: Redundant alterations for every …

March 1, 2010
By

Django tips : Tech Model. Monday, March 1, 2010. Re: Redundant alterations for every psycopg2 db connection. On Mar 1, 2010, at 11:49 AM, ozgurv wrote: > Didn't anyone experience this problem? This is universal. ...

Read more »

Django tips: Tech Model: Re: Restrict choices in ModelForm for …

March 1, 2010
By

Django tips : Tech Model. Monday, March 1, 2010. Re: Restrict choices in ModelForm for ForeginKey field. When I've needed something like this I've used a model field subclass to customize the formfield() method. I've subclassed models. ...

Read more »

Django tips: Tech Model: Re: dynamically excluding fields in admin …

March 1, 2010
By

Django tips : Tech Model. Monday, March 1, 2010. Re: dynamically excluding fields in admin form. You could do this with some javascript, which might work better in the following scenario: If you change the state of Completed between True ...

Read more »