Skip to content

Commit c9eb826

Browse files
committed
updates
1 parent f35d611 commit c9eb826

File tree

5 files changed

+4
-1
lines changed

5 files changed

+4
-1
lines changed

Section 1 - Course Introduction/DJANGO_COURSE_2.xx/16-Django_Level_Three/test/ProTwo/appTwo/views.py

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ def users(request):
1919

2020
if request.method == 'POST':
2121
form = NewUserForm(request.POST)
22+
print('request.POST: ', request.POST)
2223

2324
if form.is_valid():
2425
form.save(commit=True)

Section 19 - Django Level Four/learning_templates/basic_app/templates/basic_app/index.html

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
<h1>Hello and welcome to the site!</h1>
77
<!-- <h1>This is the index.html page</h1> -->
8+
<h2>{{ text|add:'100' }}</h2>
9+
<h2>{{ text|title }}</h2>
810
<h1>{{ text|cutout:"hello" }}</h1>
911
<h1>{{ number|add:99 }}</h1>
1012
{% endblock %}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from django import template
22
register = template.Library()
33

4-
@register.filter
4+
@register.filter(name='cutout')
55
def cutout(value, arg):
66
return value.replace(arg, '')

0 commit comments

Comments
 (0)