title: "invalid literal for int() with base 10:'username'"
body: <p>I am making a web app with Django 1.7,python 2, but I am stuck in a part where I need that anonymous users can see the profiles of registered users (The URL is like this: "www.website.com/username) but I keep getting this error:</p>
  
  <blockquote>
    <p>"invalid literal for int() with base 10:'andyjrr'"</p>
  </blockquote>
  
  <p>where "andyjrr' is an username I pass it via URL.</p>
  
  <p>This is my views.py:</p>
  
  <pre><code>def profiles(request, username):
      context = RequestContext(request)
      person = UserProfile.objects.get(user=username)
  
      return render_to_response('detail.html',{'person':person},context)
  </code></pre>
  
  <p>models.py</p>
  
  <pre><code>class UserProfile(models.Model):
      user = models.OneToOneField(User,null=True,blank=True)
      first_name = models.CharField(max_length=20,blank=True)
      last_name = models.CharField(max_length=20,blank=True)
  
      about_me = models.TextField(max_length=100,default='',blank=True)
      experience = models.TextField(max_length=250,default='',blank=True)
      offers = models.TextField(max_length=110,default='',blank=True)
  </code></pre>
  
  <p>TRACEBACK:</p>
  
  <blockquote>
    <p>/home/andyjrr/Documents/jobby/users/views.py in profiles</p>
  
  <pre><code>  person = UserProfile.objects.get(user=username)
  </code></pre>
  </blockquote>