Skip to content

Commit 28ed98d

Browse files
committed
Updates on blog
Signed-off-by: Ruth-ikegah <ruthikegah@gmail.com>
1 parent 2148818 commit 28ed98d

File tree

9 files changed

+20
-4
lines changed

9 files changed

+20
-4
lines changed

blog/__pycache__/urls.cpython-38.pyc

2 Bytes
Binary file not shown.

blog/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
urlpatterns = [
88
path('',HomePage.as_view(), name = "HomePage"),
99
path('detail/<int:pk>/', ReadMore.as_view(), name = "detail-view"),
10-
path('Share/', Share.as_view(success_url = '/'), name = "Share"),
10+
path('Share/', Share.as_view(success_url = '../'), name = "Share"),
1111

1212

1313
]

db.sqlite3

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
11 Bytes
Binary file not shown.

my_site/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
urlpatterns = [
2020
path('admin/', admin.site.urls),
21-
path('', include('blog.urls')),
21+
path('HomePage/', include('blog.urls')),
2222
path('',include('users.urls')),
2323

2424
]
0 Bytes
Binary file not shown.

users/templates/users/login.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<h1 class="my-4">Open Source Blog
1313
<small>Share Your Experience</small>
1414
</h1>
15-
<form method = "POST">
15+
<form method = "POST" action = "">
1616

1717
{% csrf_token %}
1818
{{ form.as_p }}

users/templates/users/register.html

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,23 @@ <h1 class="my-4 mr-5">Register</h1>
1414
<form method = "POST">
1515

1616
{% csrf_token %}
17-
{{ form.as_p }}
17+
<p>{{ form.username.label_tag }}</p>
18+
<p>{{ form.username }}</p>
19+
<br>
20+
21+
<p>{{ form.email.label_tag }}</p>
22+
<p>{{ form.email }}</p>
23+
<br>
24+
25+
<p>{{ form.password1.label_tag }}</p>
26+
<p>{{ form.password1 }}</p>
27+
28+
<br>
29+
30+
<p>{{ form.password2.label_tag }}</p>
31+
<p>{{ form.password2 }}</p>
32+
<br>
33+
1834
<button type = "submit" class = "btn btn-primary submit" >Submit</button>
1935
</form>
2036

0 commit comments

Comments
 (0)