-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
58ed1d7
commit c5f8924
Showing
15 changed files
with
78 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.9.6 on 2016-06-13 16:23 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('bookshare', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='student', | ||
name='extra', | ||
), | ||
migrations.AddField( | ||
model_name='student', | ||
name='first_time', | ||
field=models.BooleanField(default=False), | ||
), | ||
] |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,23 @@ | ||
{% extends 'base.html' %} | ||
{% block content %} | ||
<div class = "container"> | ||
<form action = "/signin/" method = "post"> | ||
{% csrf_token %} | ||
<input type = "text" name = "roll_no"/> | ||
<input type = "password" name = "pass"/> | ||
<input type = "submit"/> | ||
</form> | ||
</div> | ||
|
||
<div class="container"> | ||
{% if error %} | ||
<div class="alert alert-dismissible alert-danger"> | ||
<button type="button" class="close" data-dismiss="alert">×</button> | ||
{{ error }} | ||
</div> | ||
{% endif %} | ||
<form class="form-signin" action = "/signin/" method = "post"> | ||
{% csrf_token %} | ||
<h2 class="form-signin-heading">Please sign in</h2> | ||
<label for="inputRoll" class="sr-only">Roll number</label> | ||
<input type="text" id="inputRoll" class="form-control" placeholder="Roll number" name = "roll_no" required autofocus> | ||
<label for="inputPassword" class="sr-only">Web mail password</label> | ||
<input type="password" id="inputPassword" class="form-control" placeholder="Password" name = "pass" required> | ||
<button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button> | ||
</form> | ||
|
||
</div> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
{% extends 'base.html' %} | ||
{% block content %} | ||
<p>Successfully logged in</p> | ||
{{ user.user.username }} | ||
{{ user.user.password }} | ||
{{ user.extra }} | ||
{{ user.is_authenticated }} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.