  from django import forms
  from djangorestframework.resource import Resource
  from djangorestframework.response import Response, status
  
  
  class MyForm(forms.Form):
      foo = forms.BooleanField()
      bar = forms.IntegerField(help_text='Must be an integer.')
      baz = forms.CharField(max_length=32, help_text='Free text.  Max length 32 chars.')
  
  
  class ExampleResource(Resource):
      """A basic read only resource that points to 3 other resources."""
      allowed_methods = anon_allowed_methods = ('GET',)
  
 
</s> remove     url(r'^$',          'ExampleResource'),
 </s> add     url(r'^$',                 'ExampleResource'), </s> remove from django import forms
 </s> add  </s> remove     form = MyForm   # Optional form validation on input
 </s> add     form = MyForm # Optional form validation on input (Applies in this case the POST method, but can also apply to PUT)
from resourceexample.forms import MyForm
  from django import forms
  from djangorestframework.resource import Resource
  from djangorestframework.response import Response, status
from resourceexample.forms import MyForm
from resourceexample.forms import MyForm
from resourceexample.forms import MyForm
from resourceexample.forms import MyForm
from resourceexample.forms import MyForm
from resourceexample.forms import MyForm
from resourceexample.forms import MyForm
  
  class ExampleResource(Resource):
      """A basic read only resource that points to 3 other resources."""
      allowed_methods = anon_allowed_methods = ('GET',)
  
keep keep keep replace replace replace replace replace replace replace keep keep keep keep keep
 Updated resourceexample with seperate form.py 
examples/resourceexample/views.py