  from django.conf.urls.defaults import patterns, url
  
  urlpatterns = patterns('resourceexample.views',
      url(r'^$',          'ExampleResource'),
      url(r'^(?P<num>[0-9]+)/$', 'AnotherExampleResource'),
  )
 
</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 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)
    url(r'^$',                 'ExampleResource'),
  from django.conf.urls.defaults import patterns, url
  
  urlpatterns = patterns('resourceexample.views',
    url(r'^$',                 'ExampleResource'),
      url(r'^(?P<num>[0-9]+)/$', 'AnotherExampleResource'),
  )
keep keep keep replace keep keep
 Updated resourceexample with seperate form.py 
examples/resourceexample/urls.py