On Jan 9, 9:16 am, Brian Neal wrote:
> If you use RequestContext and have the settings in your
> TEMPLATE_CONTEXT_PROCESSORS, then the user variable will be available
> for use in your templates. Check out:
>
>
On Jan 9, 11:06 am, scelerat wrote:
> Hi, I'm new to Django and am trying to figure out how to make
> authentication work in any view.
>
> First off, I have a base template which has a conditional like this:
>
> {% if user.is_authenticated %}
> Yay!
> {% else %}
> Boo.
> {%
Hi, I'm new to Django and am trying to figure out how to make
authentication work in any view.
First off, I have a base template which has a conditional like this:
{% if user.is_authenticated %}
Yay!
{% else %}
Boo.
{% endif %]
In an accounts/urls.py, I add a line like this:
urlpatterns =
3 matches
Mail list logo