Is it possible to show a link in Django to admins only?
<p>is it possible to test in Django if the logged in user is an admin? And just in this case to show a link normal users can't see? </p>

<p>Thanks<br>
Croghs</p>

<p>There's a builtin method for that. (Depending on what you call an admin though)</p>

<p><strong><a href="https://docs.djangoproject.com/en/1.10/ref/contrib/auth/#django.contrib.auth.models.User.is_superuser" rel="nofollow">user.is_superuser</a></strong> ?</p>

<p>You may even want <code>user.is_staff</code>, again, depending on what you call an admin.</p>

python django