title: Get fullname of user from django user model
body: <p>I am trying to get the data from django's user model and print the full name of a user from it.</p>
  
  <p><strong>view.py</strong></p>
  
  <pre><code>from django.shortcuts import render
  from django.contrib.auth.decorators import login_required
  from django.contrib.auth.models import User
  
  def Showfullname (request):
      fullname =  request.user.get_full_name()
      context = {'fullname':fullname}
      return render(request, 'main/base.html', context)
  </code></pre>
  
  <p>the line for it from <strong>urls.py</strong></p>
  
  <pre><code>url(r'^name$', views.Showfullname, name='Showfullname'),
  </code></pre>
  
  <p>and then the div that is the target in my main files, where I already have a is authenticated check in a parent template. </p>
  
  <pre><code>&lt;div class="form-group has-feedback"&gt;
              &lt;input type="text" class="form-control" placeholder="{% url 'main:Showfullname' %}" readonly /&gt;
              &lt;i class="glyphicons glyphicons-car form-control-feedback"&gt;&lt;/i&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Right now it prints </p>
  
  <p>/ in the input when it should be printing dan dan or admin admin </p>