Skip to content

Commit 9ef70e5

Browse files
Matthew HolmesMatthew Holmes
authored andcommitted
cleaning working tree and adding modifed files
1 parent 9597ad5 commit 9ef70e5

File tree

25 files changed

+78
-379
lines changed

25 files changed

+78
-379
lines changed

Code/matthew/django/labs/01_django_redo/unit_converter_app/templates/unit_converter_app/index.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@
88
</head>
99
<body>
1010
<h1>Unit Converter</h1>
11-
12-
<form action="ucp/result/" method="post">
11+
{% comment %}
12+
try action=" {% url APP_NAME:result %}"
13+
action="ucp/result/"
14+
{% endcomment %}
15+
<form action="result/" method="post">
1316
{% csrf_token %}
1417
<!-- -->
1518

1619
<div class="distance">
17-
<!-- Name is the variable name -->
20+
<!-- name='' is the variable Name -->
1821
<textarea
1922
name="distance"
2023
id=""

Code/matthew/django/labs/01_django_redo/unit_converter_app/templates/unit_converter_app/result.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ <h1>Results</h1>
1313
You converted {{distance}}{{units}} into
1414
{{converted_output}}{{units_to_convert}}
1515
</p>
16+
<a href="{% url 'unitconverter:index' %}">Reset<a/>
17+
18+
<br>
1619

1720
distance {{ distance }} units {{units}} converted units {{converted_output}}
1821
units to convert {{units_to_convert}}

Code/matthew/django/labs/01_django_redo/unit_converter_app/urls.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
# . :importing the views from the views file in the same directory
44

55
#
6-
app_name = 'unit converter'
6+
app_name = 'unitconverter'
77

88
urlpatterns = [
99
# 8000/ucp
1010
path('', views.index, name='index'),
1111

1212

13-
path('/result/', views.forms, name='forms')
13+
path('result/', views.forms, name='forms')
1414

1515
# 8000/rps/result
1616
# path('result/', views.result, name='result'),

Code/matthew/django/labs/01_django_redo/unit_converter_proj/urls.py

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

1919
urlpatterns = [
2020
path('admin/', admin.site.urls),
21-
path('ucp', include('unit_converter_app.urls'))
21+
path('ucp/', include('unit_converter_app.urls'))
2222
]

Code/matthew/django/labs/03_grocery_list/redo/grocery_app/__init__.py

Whitespace-only changes.

Code/matthew/django/labs/03_grocery_list/redo/grocery_app/admin.py

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

Code/matthew/django/labs/03_grocery_list/redo/grocery_app/apps.py

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

Code/matthew/django/labs/03_grocery_list/redo/grocery_app/migrations/0001_initial.py

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

Code/matthew/django/labs/03_grocery_list/redo/grocery_app/migrations/__init__.py

Whitespace-only changes.

Code/matthew/django/labs/03_grocery_list/redo/grocery_app/models.py

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

0 commit comments

Comments
 (0)