Django: login user and refresh on same page without defining a template?
I'm trying to use a bootstrap drop-down sign in form to have users login. I'm able to hard code my username and password and authenticate just fine but I'm trying to have a user login without going to a login screen. Here is my code: Template: I use action to call the logUserIn url so that the form can post to that view. <ul class="nav pull-right"> {% if user.is_authenticated %} <li><a> Welcome {{ user.first_name }} </a></li> <li class="divider-vertical"></li> <li><a href="{% url 'caesarWorkflowApp.views.logUserOut' %}">Log Out</a></li> <li class="divider-vertical"></li> {% else %} <li class=