Skip to content

Commit 06c9945

Browse files
committed
first commit
1 parent d03c469 commit 06c9945

File tree

66 files changed

+257
-266
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+257
-266
lines changed

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.env
2+
3+
# Django #
4+
*.log
5+
*.pot
6+
*.pyc
7+
__pycache__
8+
db.sqlite3
9+
10+
**/migrations/**
11+
!**/migrations
12+
!**/migrations/__init__.py

README.md

Lines changed: 1 addition & 1 deletion

db.sqlite3

-260 KB
Binary file not shown.
-144 Bytes
Binary file not shown.
-2.64 KB
Binary file not shown.
-2.87 KB
Binary file not shown.
-1.45 KB
Binary file not shown.
-7.37 KB
Binary file not shown.
-665 Bytes
Binary file not shown.
-3.49 KB
Binary file not shown.

firstapp/migrations/0001_initial.py

Lines changed: 0 additions & 80 deletions
This file was deleted.

firstapp/migrations/0002_auto_20201115_2254.py

Lines changed: 0 additions & 45 deletions
This file was deleted.

firstapp/migrations/0003_customeradditional_selleradditional.py

Lines changed: 0 additions & 32 deletions
This file was deleted.

firstapp/migrations/0004_contact.py

Lines changed: 0 additions & 24 deletions
This file was deleted.

firstapp/migrations/0005_customuser_name.py

Lines changed: 0 additions & 19 deletions
This file was deleted.

firstapp/migrations/0006_auto_20201218_2027.py

Lines changed: 0 additions & 24 deletions
This file was deleted.

firstapp/migrations/0007_auto_20201229_1053.py

Lines changed: 0 additions & 19 deletions
This file was deleted.

firstapp/migrations/0008_auto_20201230_0206.py

Lines changed: 0 additions & 19 deletions
This file was deleted.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

firstapp/templates/firstapp/basic.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,16 @@
7272
</div>
7373
</div>
7474
</nav>
75+
{% if messages %}
76+
{% for message in messages %}
77+
<div class="text-center alert alert-{{ message.tags }} alert-dismissible fade show" role="alert" style="margin-bottom:0px;">
78+
{{ message|safe }}
79+
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
80+
<span aria-hidden="true">&times;</span>
81+
</button>
82+
</div>
83+
{% endfor %}
84+
{% endif %}
7585

7686
{% block body %}
7787
{% endblock %}

firstapp/templates/firstapp/registerbasicuser.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,14 @@
4646
{% endblock %}
4747

4848
{% block body%}
49+
4950
<form method="POST">{% csrf_token %}
5051
<div class="main-area">
5152
<div class="register-form">
52-
{{ form.non_field_errors }}
53+
5354
<h2 class="mainheading">Wonder Shop</h2>
5455
<h4 class="mainheading">Sign Up</h4>
56+
<p class="errorlist">{{ form.non_field_errors }}</p>
5557
<label for="id_email" class="login-labels">Email Address*</label>
5658
{{ form.email.errors }}
5759
{{ form.email|addclass:'form-control'|addplaceholder:'Email Address'}}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{% autoescape off %}
2+
Hi {{ user.name }},
3+
Thanks for signing up to WonderShop!
4+
5+
To set up your account, Please click on the link to confirm your registration,
6+
http://{{ domain }}{% url 'activate' uidb64=uid token=token %}
7+
8+
Thanks for using our site!
9+
10+
Sincerely,
11+
WonderShop Team
12+
13+
{% endautoescape %}
14+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{% autoescape off %}
2+
Hi {{ user.name }},
3+
You have requested for password change on WonderShop Website!
4+
5+
To change your password, click on the link give n below,
6+
http://{{ domain }}{% url 'password_reset_confirm' uidb64=uid token=token %}
7+
8+
Thanks for using our site!
9+
10+
Sincerely,
11+
WonderShop Team
12+
13+
{% endautoescape %}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{% extends 'firstapp/basic.html' %}
2+
{% load static %}
3+
{% block title %}
4+
{% endblock %}
5+
{% block css %}
6+
{% endblock %}
7+
8+
{% block body%}
9+
<div class="container">
10+
<form method="POST">{% csrf_token %}
11+
{{form.as_p}}
12+
<button type="submit" class="btn btn-primary">Submit</button>
13+
</form>
14+
</div>
15+
{% endblock %}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{% extends 'firstapp/basic.html' %}
2+
{% load static %}
3+
{% block title %}
4+
{% endblock %}
5+
{% block css %}
6+
{% endblock %}
7+
8+
{% block body%}
9+
<div class="container">
10+
Your password has been changed. Now you can login with your new password.
11+
</div>
12+
{% endblock %}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{% extends 'firstapp/basic.html' %}
2+
{% load static %}
3+
{% block title %}
4+
{% endblock %}
5+
{% block css %}
6+
{% endblock %}
7+
8+
{% block body%}
9+
<div class="container">
10+
<form method="POST">{% csrf_token %}
11+
{{form.as_p}}
12+
<button type="submit" class="btn btn-primary">Submit</button>
13+
</form>
14+
</div>
15+
{% endblock %}

0 commit comments

Comments
 (0)