(index):63 Uncaught ReferenceError: M is not defined at HTMLDocument.<anonymous>

I have written this code in base.html file-
{% load static %}

Portfolio {% block content %} {% endblock %}

{% block script %} {% endblock %}

And I have extended this code to index.html file in which I have written this-
{% extends ‘main\base.html’ %}
{% block content %}
{% include ‘main\nav.html’%}

<h1 class="center-align">Home Page</h1>
<div class="row">
    <div class="col s12 m4">
        <div class="card blue-grey darken-1">
            <div class="card-content white-text">
            <img class="materialboxed responsive-img"  src="https://lh3.googleusercontent.com/-57ct9ETK7ag/XbiECwtpZCI/AAAAAAAAATw/7jMr14PLT-AUBufKF0wSfme4ZhwMBHjngCEwYBhgL/w140-h140-p/2019-10-29.jpg">   
            <span class="card-title">Prabhav Mishra</span>
            </div>
            <div class="card-action">
            <a href="#">Github</a>
            <a href="#">LinkedIn</a>
            </div>
        </div>
    </div>
        <div class="col s12 m8">
            <div class="card blue-grey darken-1">
                <div class="card-content white-text">
                <span class="card-title">About Me</span>
                <p>Pursuing B.Tech. in Electronics and Communication Engineering at Dr. B. R. Ambedkar National Institute of Technology
                </p>
                </div>
            </div>
            </div>
        </div>
</div>
But my css file is getting recognized but same is not happening with javascript file(materialize.min.js)- C:\Users\Prabhav\portfolio\static\js This is the path to my js file.

If you have already collected static files then you have to include ja in the following manner .
src="{% static ‘js/materialize.min.js’ %}"

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.