2012-02-07 12:58:15 +04:00
|
|
|
{% load static %}
|
2011-02-19 13:26:27 +03:00
|
|
|
<html>
|
|
|
|
|
2012-02-07 12:58:15 +04:00
|
|
|
<head>
|
|
|
|
<link rel="stylesheet" type="text/css" href='{% get_static_prefix %}css/djangorestframework.css'/>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body class="login">
|
|
|
|
|
|
|
|
<div id="container">
|
|
|
|
|
|
|
|
<div id="header">
|
|
|
|
<div id="branding">
|
|
|
|
<h1 id="site-name">Django REST framework</h1>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="content" class="colM">
|
|
|
|
<div id="content-main">
|
|
|
|
<form method="post" action="{% url djangorestframework.utils.staticviews.api_login %}" id="login-form">
|
|
|
|
{% csrf_token %}
|
|
|
|
<div class="form-row">
|
|
|
|
<label for="id_username">Username:</label> {{ form.username }}
|
|
|
|
</div>
|
|
|
|
<div class="form-row">
|
|
|
|
<label for="id_password">Password:</label> {{ form.password }}
|
|
|
|
<input type="hidden" name="next" value="{{ next }}" />
|
|
|
|
</div>
|
|
|
|
<div class="form-row">
|
|
|
|
<label> </label><input type="submit" value="Log in">
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<script type="text/javascript">
|
|
|
|
document.getElementById('id_username').focus()
|
|
|
|
</script>
|
|
|
|
</div>
|
|
|
|
<br class="clear">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="footer"></div>
|
2011-02-19 13:26:27 +03:00
|
|
|
|
2012-02-07 12:58:15 +04:00
|
|
|
</div>
|
|
|
|
</body>
|
2012-01-20 19:53:30 +04:00
|
|
|
</html>
|