Posts Tagged ‘ serving ’

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: Page expired with IE

March 1, 2010
By

Django tips : Tech Model. Monday, March 1, 2010. Page expired with IE. In this page: http://trovascuola.comune.forli.fc.it/. put "saffi" and "48" respectively (as an example). Click on "Nidi d'infanzia ..." and then came back with back ...

Read more »

Django tips: Tech Model: Creating fancier views

March 1, 2010
By

Django tips : Tech Model. Monday, March 1, 2010. Creating fancier views. I am relatively new to Django and am comfortable creating views and customising templates. I am wondering if there is an easy way to spice up certain things, ...

Read more »

Django tips: Tech Model: ManyToManyField and null argument

March 1, 2010
By

Django tips : Tech Model. Monday, March 1, 2010. ManyToManyField and null argument. Hello there! From time to time I meet something like that: ManyToManyField(blank=True, null=True). Is there any need to set null argument? ...

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: 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: Forcing HTTPS in admin

March 1, 2010
By

Django tips : Tech Model. Monday, March 1, 2010. Re: Forcing HTTPS in admin. You could, but doing it on the front-end webserver makes more sense. Malcolm. On Mon, Mar 1, 2010 at 3:02 PM, ozgurv wrote: ...

Read more »