{% if user.is_superuser %}
<p>Hello, admin.</p>
{% else %}
<p>Hello, ordinary visitor.</p>
{% endif %}
request.user.is_anonymous
user.is_superuser
Code Example |
---|
:: |
:: |
:: |
:: print list in python |
Python :: http server in python |
Python :: |
:: |
Python :: |
:: |
:: |
:: |
:: |
Python :: |
:: |
:: python numpy array size of n |
:: |
:: |
:: python stack |
:: |
Python :: |
:: |
:: |
:: create virtual environments python |
:: |
Python :: sort an array python |
:: |
Python :: |
:: |
Python :: |
Python :: how to count null values in pandas and return as percentage |