title: Hello world Pyamf small error message
body: <p>Hi i am trying to link flex to django with Pyamf</p>
  
  <p>As a first step i tried the basic Hello World 
  <a href="http://pyamf.org/wiki/DjangoHowto" rel="nofollow noreferrer">http://pyamf.org/wiki/DjangoHowto</a></p>
  
  <p>But that results in an ErrorFault.</p>
  
  <p>I use django 1.0.2</p>
  
  <p><strong>amfgateway.py</strong> in the root folder of my project (same level as settings)</p>
  
  <pre><code>import pyamf
  from pyamf.remoting.gateway.django import DjangoGateway
  from django.contrib.auth.models import User
  
  pyamf.register_class(User, 'django.contrib.auth.models.User')
  
  def get_users(requet):
      return User.objects.all()
  
  def echo(request, data):
      return data
  
  services = {
      'myservice.echo': echo,
      'myservice.get_users': get_users,
  }
  
  edoGateway = DjangoGateway(services, expose_request=False)
  </code></pre>
  
  <p><strong>In urls.py</strong></p>
  
  <pre><code>urlpatterns = patterns('',
  
      # test pyamf
      url(r'^gateway/', 'amfgateway.edoGateway'),
      ...
  )
  </code></pre>
  
  <p>Then when i test the example with pyamf client</p>
  
  <pre><code>from pyamf.remoting.client import RemotingService
  
  gw = RemotingService('http://127.0.0.1:8000/gateway/')
  service = gw.getService('myservice')
  
  print service.echo('Hello World!')
  </code></pre>
  
  <p><strong>I get</strong> </p>
  
  <p><em>ErrorFault level=error code=500 type=u'AttributeError' description=u"Cannot find a view
  for the path ['/gateway/myservice/echo'], 'DjangoGateway' object has no attribute '<strong>nam
  e</strong>'"
  Traceback:
  u"Cannot find a view for the path ['/gateway/myservice/echo'], 'DjangoGateway' object ha
  s no attribute '<strong>name</strong>'"</em></p>