title: Exception Value: No module named 'PIL' - in Django
body: <p>Django Version: 3.1.6
  Python Version: 3.6.9</p>
  <p>I'm trying to use the ImageField in my django admin page to upload an image. When I try to upload it from my NGinx/Gunicorn server I get this error. However when I run it from port 8000 using manage.py runserver 0:8000 from the SAME server, it works. I don't understand this error. I have Pillow installed.</p>
  <pre><code>Environment:
  
  
  Request Method: POST
  Request URL: http://54.188.59.209/admin/core/employee/add/
  
  Django Version: 3.1.6
  Python Version: 3.6.9
  Installed Applications:
  ['django.contrib.admin',
   'django.contrib.auth',
   'django.contrib.contenttypes',
   'django.contrib.sessions',
   'django.contrib.messages',
   'django.contrib.staticfiles',
   'core']
  Installed Middleware:
  ['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']
  
  
  
  Traceback (most recent call last):
    File &quot;/usr/local/lib/python3.6/dist-packages/django/core/handlers/exception.py&quot;, line 47, in inner
      response = get_response(request)
    File &quot;/usr/local/lib/python3.6/dist-packages/django/core/handlers/base.py&quot;, line 181, in _get_response
      response = wrapped_callback(request, *callback_args, **callback_kwargs)
    File &quot;/usr/local/lib/python3.6/dist-packages/django/contrib/admin/options.py&quot;, line 614, in wrapper
      return self.admin_site.admin_view(view)(*args, **kwargs)
    File &quot;/usr/local/lib/python3.6/dist-packages/django/utils/decorators.py&quot;, line 130, in _wrapped_view
      response = view_func(request, *args, **kwargs)
    File &quot;/usr/local/lib/python3.6/dist-packages/django/views/decorators/cache.py&quot;, line 44, in _wrapped_view_func
      response = view_func(request, *args, **kwargs)
    File &quot;/usr/local/lib/python3.6/dist-packages/django/contrib/admin/sites.py&quot;, line 233, in inner
      return view(request, *args, **kwargs)
    File &quot;/usr/local/lib/python3.6/dist-packages/django/contrib/admin/options.py&quot;, line 1653, in add_view
      return self.changeform_view(request, None, form_url, extra_context)
    File &quot;/usr/local/lib/python3.6/dist-packages/django/utils/decorators.py&quot;, line 43, in _wrapper
      return bound_method(*args, **kwargs)
    File &quot;/usr/local/lib/python3.6/dist-packages/django/utils/decorators.py&quot;, line 130, in _wrapped_view
      response = view_func(request, *args, **kwargs)
    File &quot;/usr/local/lib/python3.6/dist-packages/django/contrib/admin/options.py&quot;, line 1534, in changeform_view
      return self._changeform_view(request, object_id, form_url, extra_context)
    File &quot;/usr/local/lib/python3.6/dist-packages/django/contrib/admin/options.py&quot;, line 1573, in _changeform_view
      form_validated = form.is_valid()
    File &quot;/usr/local/lib/python3.6/dist-packages/django/forms/forms.py&quot;, line 177, in is_valid
      return self.is_bound and not self.errors
    File &quot;/usr/local/lib/python3.6/dist-packages/django/forms/forms.py&quot;, line 172, in errors
      self.full_clean()
    File &quot;/usr/local/lib/python3.6/dist-packages/django/forms/forms.py&quot;, line 374, in full_clean
      self._clean_fields()
    File &quot;/usr/local/lib/python3.6/dist-packages/django/forms/forms.py&quot;, line 390, in _clean_fields
      value = field.clean(value, initial)
    File &quot;/usr/local/lib/python3.6/dist-packages/django/forms/fields.py&quot;, line 598, in clean
      return super().clean(data)
    File &quot;/usr/local/lib/python3.6/dist-packages/django/forms/fields.py&quot;, line 149, in clean
      value = self.to_python(value)
    File &quot;/usr/local/lib/python3.6/dist-packages/django/forms/fields.py&quot;, line 627, in to_python
      from PIL import Image
  
  Exception Type: ModuleNotFoundError at /admin/core/employee/add/
  Exception Value: No module named 'PIL'
  </code></pre>