title: TypeError: 'module' object is not callable Django 3 render function
body: <p>I am just making a simple hello world page in my Django 3 Application I am getting error</p>
  <pre><code>TypeError: 'module' object is not callable
  </code></pre>
  <p>Here is the error</p>
  <pre><code>TypeError at /
  'module' object is not callable
  Request Method: GET
  Request URL:    http://127.0.0.1:8000/
  Django Version: 3.0.11
  Exception Type: TypeError
  Exception Value:    
  'module' object is not callable
  Exception Location: C:\Users\admin\AppData\Roaming\Python\Python37\site- packages\django\template\context.py in bind_template, line 246
  Python Executable:  C:\Program Files (x86)\Microsoft Visual 
  Studio\Shared\Python37_64\python.exe
  Python Version: 3.7.8
  Python Path:    
  ['C:\\Users\\admin\\Repositories\\django-docker\\django-portal-base\\app',
  'C:\\Program Files (x86)\\Microsoft Visual '
  'Studio\\Shared\\Python37_64\\python37.zip',
  'C:\\Program Files (x86)\\Microsoft Visual 
  Studio\\Shared\\Python37_64\\DLLs',
   'C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python37_64\\lib',
   'C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python37_64',
   'C:\\Users\\admin\\AppData\\Roaming\\Python\\Python37\\site-packages',
   'C:\\Program Files (x86)\\Microsoft Visual '
   'Studio\\Shared\\Python37_64\\lib\\site-packages']
   Server time:   Thu, 14 Jan 2021 19:15:32 +0000
  </code></pre>
  <p>It was working before but suddenly not working now. Here is my <code>views.py</code></p>
  <pre><code>from django.shortcuts import render
  # from django.http import HttpResponse
  # from django.template import RequestContext, loader
  # from django.template import Context
  
  def index(request):
      &quot;&quot;&quot;Placeholder index view&quot;&quot;&quot;
      print('XXXX')
      return render(request, 'hello_world/index.html')
      #return HttpResponse('Hello, World!')
  
  def test(request):
      context = {'foo': 'bar'}
      return render(request, 'hello_world/index.html', context) 
  </code></pre>
  <p>The error is in line <code>return render(request, 'hello_world/index.html')</code> but when I change it to <code>return HttpResponse('Hello, World!')</code> it works fine.</p>
  <p>My html file is very simple <code>index.html</code></p>
  <pre><code>&lt;h3&gt; MY DJANGO APP&lt;/h3&gt;
  </code></pre>
  <p>The html file is also in the correct folder <code>templates/hello_world/index.html</code></p>
  <p>settings</p>
  <pre><code>BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
  TEMPLATES = [
  {
      'BACKEND': 'django.template.backends.django.DjangoTemplates',
      'DIRS': [os.path.join(BASE_DIR, 'templates')],
      'APP_DIRS': False,
      'OPTIONS': {
          'context_processors': [
              'django.template.context_processors.debug',
              'django.template.context_processors.request',
              'django.contrib.auth.context_processors.auth',
              'django.contrib.messages.context_processors.messages',
              'django.contrib.sessions'
          ],
      },
  },
  ]
  </code></pre>