Alastair McCormack Alastair McCormack - 5 months ago 43
Python Question

"No module named djangomako.middleware" from Intellij developed Django app

When developing a Python application using Intellij, I get:

No module named djangomako.middleware

when trying to access pages through the development HTTP server.


IntelliJ automatically adds Mako as an Middleware application to

To fix:

  1. Edit <application name>/
  2. Find MIDDLEWARE_CLASSES definition
  3. Remove 'djangomako.middleware.MakoMiddleware' from list