title: django rest-auth get user profile
body: <p>I´m a little bit lost... I´m trying to develop an ionic app witch needs to be authenticated versus Django web application.</p>
  
  <p>I installed Django-Rest-Framework and Django-Rest-Auth. I´m able to login, getin the user with the token, but how can I retrieve more User data? </p>
  
  <pre><code>url(r'^rest-auth/', include('rest_auth.urls')),
  url(r'^rest-token-auth/$',obtain_auth_token),
  </code></pre>
  
  <p>With Django-rest-auth in host.com/rest-auth/user/ url I only have this data:</p>
  
  <pre><code>HTTP 200 OK
  Content-Type: application/json
  Vary: Accept
  Allow: GET, PUT, HEAD, OPTIONS, PATCH
  
  {
      "username": "ikerib",
      "email": "ikerib@gmail.com",
      "first_name": null,
      "last_name": null
  }
  </code></pre>
  
  <p>But I need more! like id, user_photo, city...</p>
  
  <p>I tried configuring a user serializer like this:</p>
  
  <pre><code>from rest_framework import serializers
  from gamer.models import GamerUser
  
  class GameUserSerializer(serializers.ModelSerializer):
      class Meta:
          model = GamerUser
          fields = ('id', 'fullname', 'get_photo', 'karma')
  </code></pre>
  
  <p>and this view:</p>
  
  <pre><code>@csrf_exempt
  def gameuser_detail(request, pk):
      try:
          gameuser = GameUser.objects.get(pk=pk)
      except GameUser.DoesNotExist:
          return HttpResponse(status=404)
  
      if request.method == 'GET':
          serializer = GameUserSerializer(gameuser)
          return JSONResponse(serializer.data)
  </code></pre>
  
  <p>but I´m unable to get user data because I don´t know the user id..</p>
  
  <p>any help or clue???</p>
  
  <p>thanks in advance</p>