  from django import forms
  from djangorestframework.resource import Resource
  from djangorestframework.response import Response, status
  
  
  class MyForm(forms.Form):
 
</s> remove 

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.')

 </s> add from resourceexample.forms import MyForm </s> remove     url(r'^$',          'ExampleResource'),
 </s> add     url(r'^$',                 'ExampleResource'), </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 djangorestframework.resource import Resource
  from djangorestframework.response import Response, status
  
  
  class MyForm(forms.Form):
replace keep keep keep keep keep
 Updated resourceexample with seperate form.py 
examples/resourceexample/views.py