Why not use the login.html of the admin interface? {% extends "admin/base_site.html" %} {% load i18n %}
{% block stylesheet %}{% load adminmedia %}{% admin_media_prefix %}css/login.css{% endblock %} {% block bodyclass %}login{% endblock %} {% block content_title %}{% endblock %} {% block breadcrumbs %}{% endblock %} {% block content %} {% if error_message %} <p class="errornote">{{ error_message }}</p> {% endif %} <div id="content-main"> <form action="{{ app_path }}" method="post" id="login-form"> <div class="form-row"> <label for="id_username">{% trans 'Username:' %}</label> <input type="text" name="username" id="id_username" /> </div> <div class="form-row"> <label for="id_password">{% trans 'Password:' %}</label> <input type="password" name="password" id="id_password" /> <input type="hidden" name="this_is_the_login_form" value="1" /> </div> <div class="submit-row"> <label> </label><input type="submit" value="{% trans 'Log in' %}" /> </div> </form> <script type="text/javascript"> document.getElementById('id_username').focus() </script> </div> {% endblock %} On Fri, Oct 31, 2008 at 1:50 PM, sadeesh Arumugam <[EMAIL PROTECTED]> wrote: > Hi Friends, > Anybody please send me a sample login form in django. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---