title: Link to the user's edit form of django admin from another page
body: <p>There's a different site with the currently logged in user's name on top. On clicking it, I need the edit form of that user from django-admin to be displayed. And not all should be displayed, for example, permissions block shouldn't be displayed, etc. How do I achieve this?</p>
  
  <p>What I did:</p>
  
  <p><strong>views.py</strong></p>
  
  <pre><code>def userprofile(request):
      return render(request, "userprofile.html", {'form': UserChangeForm})
  </code></pre>
  
  <p>In <strong>userprofile.html</strong></p>
  
  <pre><code>&lt;html&gt;
      &lt;body&gt;
          &lt;form action="" method="post"&gt;
              &lt;table&gt;
                  {{form.as_table}}
              &lt;/table&gt;
          &lt;/form&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>In <strong>urls.py</strong></p>
  
  <pre><code>url(r'^admin/auth/user/(\d{1,2})/$', userprofile),
  </code></pre>
  
  <p>In <strong>head.html</strong> (the site where user profile link is at top right)</p>
  
  <pre><code>&lt;span class="glyphicon glyphicon-user"&gt;&lt;/span&gt;&amp;nbsp;&lt;a href = "/admin/auth/user/" title="Click Here to view user profile"&gt;User : {{user.username}} &lt;/a&gt;
  </code></pre>
  
  <p>Where and how should the query be to get the <em>logged-in user's edit form??</em>
  What is it like primary key of Model User in database, how to get this number?</p>
  
  <p><a href="https://i.stack.imgur.com/GEkcQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GEkcQ.png" alt="enter image description here"></a></p>