Skip to content

Commit 23c3873

Browse files
committed
Change abc to other
1 parent 6296b6d commit 23c3873

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

quora/question/views.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ def welcome(request):
1515
return render(request, 'welcome.html')
1616
# return HttpResponse('asdfasdfasdfasdfasdf')
1717

18-
def abc(request):
18+
def other(request):
1919
print('-+'*20)
20-
print("Request received at abc")
20+
print("Request received at other")
2121
print('-+'*20)
2222
context = {'username': 'Django', 'num': 207}
23-
return render(request, 'abc.html', context)
23+
return render(request, 'other.html', context)

quora/quora/urls.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
"""
1616
from django.contrib import admin
1717
from django.urls import path
18-
from question.views import welcome, abc
18+
from question.views import welcome, other
1919

2020
urlpatterns = [
2121
path('admin/', admin.site.urls),
2222
path('', welcome, name='welcome'),
23-
path('abcdefghijklmnopqrstuvwxy/', abc, name='abc'),
23+
path('other/', other, name='other'),
2424
]

quora/templates/abc.html renamed to quora/templates/other.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<title>Welcome Page</title>
4+
<title>Other Page</title>
55
<!-- This is an HTML comment -->
66

77
<style>
@@ -40,7 +40,7 @@
4040
</head>
4141

4242
<body>
43-
<h1 id="first" class="heading" align="center"> ABC Page </h1>
43+
<h1 id="first" class="heading" align="center"> Other Page </h1>
4444

4545
<!-- This is how we use variables in template -->
4646
<p> Context Variables: {{ username }} {{num}} {{num}} {{num}} {{num}} {{num}} {{num}} </p>

quora/templates/welcome.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ <h6 class="heading" align="center"> Welcome Page </h6>
5252

5353

5454
<p>
55-
This is also a paragraph.<a href="{% url 'abc' %}">Link</a>
55+
This is also a paragraph.<a href="{% url 'other' %}">Link</a>
5656
</p>
5757
<p>
5858
This is third paragraph.

0 commit comments

Comments
 (0)