I'm using visual studio community and I created a web project with Django, but when I make the homepage, it's generating this code:
AndthecodeIhaveisthis:
{%loadstaticfiles%}<!DOCTYPEhtml><html><head><metacharset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ title }}</title>
<link rel="stylesheet" type="text/css" href="{% static 'app/content/materialize.css' %}" />
<link rel="stylesheet" type="text/css" href="{% static 'app/content/app.css' %}" />
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/icon?family=Material+Icons" />
</head>
<body>
Does anyone know why running it does it? esculhamba or html?
This is creating a space on my page that should not have.
code that renders:
def home(request):
"""Renders the home page."""
assert isinstance(request, HttpRequest)
return render(
request,
'app/index.html',
{
'title':'Home Page',
'year':datetime.now().year,
}
)