Skip to content

Commit

Permalink
submit
Browse files Browse the repository at this point in the history
  • Loading branch information
dwsds committed Nov 7, 2023
1 parent 5707974 commit 714488f
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
Binary file modified app1/__pycache__/urls.cpython-311.pyc
Binary file not shown.
Binary file modified app1/__pycache__/views.cpython-311.pyc
Binary file not shown.
1 change: 0 additions & 1 deletion app1/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
path('', views.index, name='index'), # Example URL pattern
path('about/', views.about, name='about'),
path('illness-form/<int:user_age>/<int:user_height>/<int:user_weight>/<int:user_lost>/<str:user_name>/', views.illness_form, name='illness_form'),

path('login/', views.login_view, name='login'),
path('create-superuser/', views.create_superuser, name='create_superuser'),
path('home/', views.homepage, name='home'),
Expand Down
4 changes: 1 addition & 3 deletions app1/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,10 @@ def add_user_info(request):
if user_info_form.is_valid() and personal_info_form.is_valid():
user_info = user_info_form.save()
personal_info = personal_info_form.save()

user_age = user_info_form.cleaned_data['age']

user_weight = personal_info_form.cleaned_data['weight']
user_name = user_info_form.cleaned_data['user_name']
# Pass the user_name to the context

user_height = personal_info_form.cleaned_data['height']
user_lost = personal_info_form.cleaned_data['weight_lost']

Expand Down

0 comments on commit 714488f

Please sign in to comment.