{% extends "rest_framework/base.html" %} {% block style %} {{ block.super }} {% endblock %} {% block userlinks %} {% if user.is_authenticated or response.data.access_token %} {% else %} {% url 'rest_login' as login_url %}
  • Login
  • {% url 'rest_register' as register_url %}
  • Register
  • {% endif %} {% endblock %}