Archive for March, 2010
Custom Fields on South 0.7
If you’ve upgraded to South 0.7, you’ll notice that custom model fields are no longer supported. There’s a long, convoluted, discussion about supporting custom fields with introspection rules, but that’s unnecessary for most custom fields. If you’re just extending a standard field like CharField, follow their tutorial example. Import:
from south.modelsinspector import add_introspection_rules
in your fields.py file (which should be holding the custom field MyCustomField, in my case in the util app). Then, at the bottom, under your field definition, put:
add_introspection_rules([], ["^util\.fields\.MyCustomField"])
AckMate replaces Ack in Project
It looks like I’m behind the times. AckMate has replaced Ack in Project – time to upgrade…
ackrc file
Great tip, add this to your ~/.ackrc file for ack:
–ignore-dir=migrations
Then, when you run Ack in Project from TextMate, you won’t get hits on your migration directories – which typically aren’t what you’re looking for anyway.
You are currently browsing the Varud blog archives for March, 2010.