Re: How REST Access ?

2011-10-03 Thread Brian Mehrman
Thanks for the info. I didn't know about either tastypie or piston. The easy ability to throttle a users number of requests is awesome. -Brian On Mon, Oct 3, 2011 at 12:40 PM, sanket wrote: > please checkout Tastypie .. I was able to RESTify my django app in > couple of hours > > On Oct 3,

Re: how to match a url in urls.py

2011-10-03 Thread Brian Mehrman
Hi He, I always try to break my regex's down to their simplest components, then test them here, http://www.regular-expressions.info/javascriptexample.html. Try testing each part of your regex there and see if you can see which part is broken. Also an example url of what you are trying to match wou

Re: Can model subclass change field options?

2011-10-02 Thread Brian Mehrman
gt; that works so far for displaying the correct choices in the admin > interface. But the problem now is the validation. He always tells me > that my choice is not a correct value. > I have been looking for a way to change validation but I can't figure > out how to do this... > >

Re: Can model subclass change field options?

2011-10-02 Thread Brian Mehrman
HI, Artemis, If I understand you correctly you want to use a Select Widget for your CharField. And feed your choices to the select widget. In your admin.py file of your app you will want to override the model's form field. # models.py from django.db import models myModel(models.Model): perso