  
  class AnotherExampleResource(Resource):
      """A basic GET-able/POST-able resource."""
      allowed_methods = anon_allowed_methods = ('GET', 'POST')
      form = MyForm   # Optional form validation on input
  
      def get(self, request, auth, num):
          """Handle GET requests"""
          if int(num) > 2:
              return Response(status.HTTP_404_NOT_FOUND)
 
</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 from django import forms
 </s> add 
    form = MyForm # Optional form validation on input (Applies in this case the POST method, but can also apply to PUT)
  
  class AnotherExampleResource(Resource):
      """A basic GET-able/POST-able resource."""
      allowed_methods = anon_allowed_methods = ('GET', 'POST')
    form = MyForm # Optional form validation on input (Applies in this case the POST method, but can also apply to PUT)
  
      def get(self, request, auth, num):
          """Handle GET requests"""
          if int(num) > 2:
              return Response(status.HTTP_404_NOT_FOUND)
keep keep keep keep replace keep keep keep keep keep
 Updated resourceexample with seperate form.py 
examples/resourceexample/views.py