Re: error on django-admin.py startproject

2011-07-04 Thread Tim Diggins
I think it helps you to use virtualenv when using django on a machine with multiple pythons (it's a great tool anyway, but this is an extra reason). the trick is to use virtualenv's -p argument when creating the environment, to specify the path to the python executable. so, in summary: 1) install

Re: How to specify NULL as the default of a model field.

2010-10-09 Thread Tim Diggins
Yes I'm setting blank=True and null=True. But, when I migrate using South (I've added this field to an existing model), South complains that the field has no default value... In this instance, it isn't that important, but just wondering how I specify "NULL" in python in future (I would normally gue

How to specify NULL as the default of a model field.

2010-10-09 Thread Tim Diggins
It may seem odd but I want to explicitly specify NULL as the default for a particular field / column. (This is so that South picks up that the default value is null, rather than there being no default specified, which is what happens if you specify "null=True" any thoughts (or it may just be impos