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>
    <title>Base title</title>
    {% block content %}
    {% endblock %}

in app/urls.py

from django.urls import path
from app import views
urlpatterns = [

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