Given the following in my main page template how does Django process
logout? I am asking this, because I want an href to take an
authenticated user to a page that, for example, allows the collection
of some data (billing reads).

I have an application within the project that will handle read snaps.
I am assuming /read_snap will cause Django to jump to the read_snap
application. Is that correct?

tnx
cmn

{% extends "base.html" %}


{% block title %}AMR Main Page {% endblock %}
{% block head %}AMR Main Page {% endblock %}

{% block content %}

{% if user.is_authenticated %}
    <a href="/read_snap">Snap Billing Reads</a>
    <br></br><br></br>
    <a href="/logout">Log out</a>

{% else %}
    <a href="/login/">Log in</a>
{% endif %}

{% endblock %}

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to