I have defined block content in base.html and extents in index.html , block content is not working

in template/app/index.html

{% extends 'base.html' %}

{% block content %}
replace me
{% endblock %}

in template/app/base.html

<!doctype html>
<html>
<head>
    <title>Base title</title>
    </head>
<body>
    {% block content %}
    {% endblock %}
    </body>
</html>

in app/urls.py

from django.urls import path
from app import views
urlpatterns = [
    path('',views.index)
]

in app/views.py

from django.shortcuts import render

# Create your views here.
def index(request):
    return render(request,'app/base.html',{})

this is the code...!

i have tried changing the folder location and saw level of the folder

Back to Top