-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Troca resposta HTTP por HTML renderizado na primeira rota
- Loading branch information
Showing
2 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Django Receitas</title> | ||
</head> | ||
|
||
<body> | ||
<h1>Receitas</h1> | ||
|
||
<table> | ||
<thead> | ||
<tr> | ||
<td>Receita</td> | ||
<td>Ingredientes</td> | ||
<td>Preparo</td> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<td>Vitamina de Banana</td> | ||
<td>Bananas, bolacha de maizena, achocolatado e leite</td> | ||
<td>Bater no liquidificador</td> | ||
</tbody> | ||
</table> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
from django.shortcuts import render | ||
from django.http import HttpResponse | ||
|
||
def index(request): | ||
return HttpResponse('<h1>Hello Receitas</h1>') | ||
return render(request, 'index.html') |