Django app has a no ImportError: No module named 'django.core.context_processors'
<p>Tried git pushing my app after tweaking it and got the following error.</p>

<pre><code>ImportError: No module named 'django.core.context_processors'
</code></pre>

<p>this was not showing up in my heroku logs and my app works locally so I was confused. I had to set debug to true on the production side to finally figure this out. What can I do to clear this up?</p>

<p>this is some of the traceback</p>

<pre><code>Request Method: GET
Request URL:    http://hispanicheights.com/
Django Version: 1.10.1
Exception Type: ImportError
Exception Value:    
No module named 'django.core.context_processors'
Exception Location: /app/.heroku/python/lib/python3.5/importlib/__init__.py in import_module, line 126
Python Executable:  /app/.heroku/python/bin/python
Python Version: 3.5.1
Python Path:['/app',
             '/app/.heroku/python/bin',
             '/app/.heroku/python/lib/python3.5/site-packages/setuptools-23.1.0-py3.5.egg',
             '/app/.heroku/python/lib/python3.5/site-packages/pip-8.1.2-py3.5.egg',
             '/app',
             '/app/.heroku/python/lib/python35.zip',
             '/app/.heroku/python/lib/python3.5',
             '/app/.heroku/python/lib/python3.5/plat-linux',
             '/app/.heroku/python/lib/python3.5/lib-dynload',
             '/app/.heroku/python/lib/python3.5/site-packages',
             '/app',
             '/app']
</code></pre>

<p>I looked at line 126 and this is what's there</p>

<pre><code> return _bootstrap._gcd_import(name[level:], package, level)
</code></pre>

<p>this</p>

<pre><code>django.core.context_processors
</code></pre>

<p>is no where to be found in the init file. I looked in my settings file for production and saw this</p>

<pre><code>TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [],
        'APP_DIRS': True,
        'OPTIONS': {
            'debug': True,
            '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.core.context_processors.request",
            ],
        },
    },
]
</code></pre>

<p>am I supposed to modify this some how?</p>

<p>I fixed it, in settings.py In my TEMPLATES, I changed this line from this</p>

<pre><code>django.core.context_processors.request
</code></pre>

<p>to this</p>

<pre><code>django.template.context_processors.request
</code></pre>

<p>and now I can see my site. I hope this helps someone.</p>

python django git heroku deployment