title: Django: ImportError "doesn't look like a module path
body: <p>I just started to learn Django and I tried to add a middleware to my application. </p>
  
  <p>Under ProjectFolder/app I have the following files:</p>
  
  <ol>
  <li>an empty <code>__init__.py</code> file</li>
  <li>settings.py file - the content of this file is default except for: </li>
  </ol>
  
  <pre><code>  MIDDLEWARE = (
       'SimpleMiddleware',
       'django.middleware.security.SecurityMiddleware',
       'django.contrib.sessions.middleware.SessionMiddleware',
       'django.middleware.common.CommonMiddleware',
       'django.middleware.csrf.CsrfViewMiddleware',
       'django.contrib.auth.middleware.AuthenticationMiddleware',
       'django.contrib.messages.middleware.MessageMiddleware',
       'django.middleware.clickjacking.XFrameOptionsMiddleware',
   )
  </code></pre>
  
  <ol start="3">
  <li>SimpleMiddleware.py file:</li>
  </ol>
  
  <pre><code>class SimpleMiddleware(MiddlewareMixin):
  
      def __init__(self, get_response):
          print("***********************************SIMPLE MIDDLEWARE")
          self.get_response = get_response
          # One-time configuration and initialization.
  
      def __call__(self, request):
          # Code to be executed for each request before
          # the view (and later middleware) are called.
          print("***********************************SIMPLE MIDDLEWARE")
          response = self.get_response(request)
          # Code to be executed for each request/response after
          # the view is called.
          return response
  
      def process_request(self, request):
          print("***********************************SIMPLE MIDDLEWARE")
          return None
  </code></pre>
  
  <ol start="4">
  <li>url.py file:</li>
  </ol>
  
  <pre><code>    from app import views
  
      urlpatterns = [
          path('hello', views.index, name='index'),
          path('core', include('core.urls')),
      ]
  </code></pre>
  
  <p>However, when I run the application by the command "python manage.py runserver", I get the error: </p>
  
  <blockquote>
    <p>ImportError: SimpleMiddleware doesn't look like a module path</p>
  </blockquote>
  
  <p>Do you know what I'm doing wrong? </p>
  
  <p>If you want to see the complete code, please click here:
  <a href="https://bitbucket.org/MATAN_BL/djangotry/src/master/app/" rel="nofollow noreferrer">https://bitbucket.org/MATAN_BL/djangotry/src/master/app/</a></p>