-
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
a336ed8
commit f6c590d
Showing
22 changed files
with
174 additions
and
54 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.
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 |
---|---|---|
|
@@ -43,7 +43,7 @@ | |
'reversion', | ||
|
||
'tinymce', | ||
|
||
'article', | ||
'userpage', | ||
'notification', | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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.
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
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,18 @@ | ||
# Generated by Django 2.0.2 on 2018-03-03 14:41 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('userpage', '0005_auto_20180302_1610'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='profile', | ||
name='avatar', | ||
field=models.ImageField(blank=True, default='static/avatar/default.png', null=True, upload_to='static/avatar/'), | ||
), | ||
] |
Binary file added
BIN
+652 Bytes
userpage/migrations/__pycache__/0006_auto_20180303_2241.cpython-36.pyc
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
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,83 @@ | ||
{% extends 'base.html' %} | ||
{% load timetonow %} | ||
|
||
{% block header %} | ||
<title> 物志 › 注册 </title> | ||
{% endblock %} | ||
|
||
{% block banner %} | ||
<div style="height:30px"> | ||
<p></p> | ||
</div> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<div class="card"> | ||
<form class="form-inline " method="post" action="" novalidate>{% csrf_token %} | ||
<a href="/">物志</a> › 注册 | ||
<hr> | ||
|
||
<p class="mid"> | ||
<label style="width:100px;text-align:right" for="username">用户名:</label> | ||
{{ form.username }} | ||
</p> | ||
<p class="mid"><span style="color:red">{{ form.username.errors|striptags }}</span></p> | ||
|
||
<p class="mid"> | ||
<label style="width:100px;text-align:right" for="email">邮箱:</label> | ||
{{ form.email }} | ||
</p> | ||
<p class="mid"><span style="color:red">{{ form.email.errors|striptags }}</span></p> | ||
|
||
<p class="mid"> | ||
<label style="width:100px;text-align:right" for="password">密码:</label> | ||
{{ form.pwd }} | ||
</p> | ||
{% for i in form.pwd.errors %} | ||
<p class="mid"> | ||
<span style="color:red">{{i}}</span> | ||
</p> | ||
{% endfor %} | ||
|
||
<p class="mid"> | ||
<label style="width:100px;text-align:right" for="confirm_password">确认密码:</label> | ||
{{ form.pwd_again }} | ||
</p> | ||
<p><span style="color: red">{{ form.pwd_again.errors|striptags }}</span></p> | ||
|
||
<p class="mid"> | ||
<label style="width:100px;text-align:right"></label> | ||
<img style="display:inline-block;" id="check_code_img" src="/utils/check_code/" onclick="refresh_check_code(this)"></p> | ||
<p class="mid"> | ||
<label style="width:100px;text-align:right" for="check_code">验证码:</label> | ||
<input type="text" class="form-control" name="check_code" id="check_code" placeholder="请输入验证码"> | ||
</p> | ||
|
||
<p class="mid"> | ||
<button class="btn btn-primary" type="submit" >注册</button> | ||
</p> | ||
|
||
</form> | ||
</div> | ||
|
||
|
||
{% if errors %} | ||
{% for error in errors %} | ||
<script type="text/javascript"> | ||
$.notify({ | ||
message: '{{ error|escape }}', | ||
},{ | ||
type: 'warning', | ||
delay: 5000, | ||
timer: 1000, | ||
animate: { | ||
enter: 'animated flipInY', | ||
exit: 'animated flipOutX' | ||
}, | ||
},); | ||
</script> | ||
{% endfor %} | ||
{% endif %} | ||
|
||
|
||
{% 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
Oops, something went wrong.