Skip to content

Commit

Permalink
alteração na Model
Browse files Browse the repository at this point in the history
  • Loading branch information
bolzanMGB committed Nov 24, 2024
1 parent e9e4ca7 commit fe9f46d
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 2 deletions.
Binary file modified mamutes/Users/__pycache__/admin.cpython-312.pyc
Binary file not shown.
Binary file modified mamutes/Users/__pycache__/forms.cpython-312.pyc
Binary file not shown.
Binary file modified mamutes/Users/__pycache__/models.cpython-312.pyc
Binary file not shown.
Binary file modified mamutes/Users/__pycache__/views.cpython-312.pyc
Binary file not shown.
4 changes: 4 additions & 0 deletions mamutes/Users/templates/login.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<div>
<h1> um dois tres teste obaaaaaa
</h1>
</div>
5 changes: 3 additions & 2 deletions mamutes/Users/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@

def login (request):
if request.method == 'GET':
return render (request, 'cadastro/login.html')
return render(request, 'login.html')

else:
username = request.POST.get('username')
senha = request.POST.get('senha')
Expand All @@ -16,7 +17,7 @@ def login (request):

if user is not None:
login_django (request, user)
return render(request, 'templates/login.html')
return render(request, 'login.html')

else:
return HttpResponse("Credenciais inválidas.")
Expand Down
Binary file modified mamutes/db.sqlite3
Binary file not shown.

0 comments on commit fe9f46d

Please sign in to comment.