2011-02-19 13:26:27 +03:00
|
|
|
<html>
|
|
|
|
<head>
|
2012-01-20 19:53:30 +04:00
|
|
|
{% if ADMIN_MEDIA_PREFIX %}
|
|
|
|
<link rel="stylesheet" type="text/css" href='{{ADMIN_MEDIA_PREFIX}}css/base.css'/>
|
|
|
|
<link rel="stylesheet" type="text/css" href='{{ADMIN_MEDIA_PREFIX}}css/forms.css'/>
|
|
|
|
<link rel="stylesheet" type="text/css" href='{{ADMIN_MEDIA_PREFIX}}css/login.css' />
|
|
|
|
{% else %}
|
|
|
|
<link rel="stylesheet" type="text/css" href='{{STATIC_URL}}admin/css/base.css'/>
|
|
|
|
<link rel="stylesheet" type="text/css" href='{{STATIC_URL}}admin/css/forms.css'/>
|
|
|
|
<link rel="stylesheet" type="text/css" href='{{STATIC_URL}}admin/css/login.css' />
|
|
|
|
{% endif %}
|
2011-02-19 13:26:27 +03:00
|
|
|
<style>
|
|
|
|
.form-row {border-bottom: 0.25em !important}</style>
|
|
|
|
</head>
|
|
|
|
<body class="login">
|
|
|
|
<div id="container">
|
|
|
|
<div id="header">
|
|
|
|
<div id="branding">
|
|
|
|
<h1 id="site-name">Django REST framework</h1>
|
2012-01-20 19:53:30 +04:00
|
|
|
</div>
|
2011-02-19 13:26:27 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="content" class="colM">
|
2012-01-20 19:53:30 +04:00
|
|
|
|
2011-02-19 13:26:27 +03:00
|
|
|
<div id="content-main">
|
2011-05-04 12:21:17 +04:00
|
|
|
<form method="post" action="{% url djangorestframework.utils.staticviews.api_login %}" id="login-form">
|
2011-02-19 13:26:27 +03:00
|
|
|
{% 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>
|
|
|
|
|
2012-01-20 19:53:30 +04:00
|
|
|
|
2011-02-19 13:26:27 +03:00
|
|
|
<br class="clear">
|
|
|
|
</div>
|
|
|
|
|
2012-01-20 19:53:30 +04:00
|
|
|
<div id="footer"></div>
|
2011-02-19 13:26:27 +03:00
|
|
|
|
|
|
|
</div>
|
|
|
|
</body>
|
2012-01-20 19:53:30 +04:00
|
|
|
</html>
|