Hey all,

  I'm superpleased to announce the release of Django REST framework 0.1.
http://django-rest-framework.org/

  The project is another mini-framework aimed at making it easy to
build well-connected, self-describing RESTful web APIs,
in the same vein as django-piston and django-tastypie.  (There's even a bit
of piston code in there too)

Some of the stand out features:

   - The APIs that it creates are automatically browseable via the awesome
   admin-styled interface, allowing them to be self documenting, and allowing
   you to read, create, update and delete resources via the browser. Eg:
   http://api.djangorestframework.org/
   -  The framework uses Django's new class based views, with the various
   functionality separated into MixIn classes, making it really flexible - you
   can use parts of the framework in your own View classes, even if you don't
   use the core Resource and ModelResource classes it provides.
   - Nice simple Resource and ModelResource classes, with default handler
   methods on the ModelResource class and automatic input validation using
   ModelForms.
   - And a whole bunch of stuff really...

Creating new resources can be as simple as adding a couple of lines to your
URLconf...

from django.conf.urls.defaults import patterns, url
from djangorestframework import ModelResource, RootModelResource
from models import MyModel

urlpatterns = patterns('',
    url(r'^$', RootModelResource.as_view(model=MyModel)),
    url(r'^(?P<pk>[^/]+)/$', ModelResource.as_view(model=MyModel),
name='my-model'),
)

(For anything beyond that head on over to the docs...)

Thoughts or feedback always appreciated.

Cheers,

  Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to