user login django

Sale Price:$400.00 Original Price:$500.00
sale

We should display a log out button to the user, but only if the user is currently logged in. join casaprize login Django gives us a neat way to check for this using the is_authenticated property on the user object You can reference it in your Django templates using {% if user is_authenticated %} So in the code below, the log out button is used in a form tag

Quantity:
Add To Cart