title: Django AttributeError: module 'PIL.Image' has no attribute 'init'
body: <p>I'm new to Django. I'm using version 1.11.6 in a vagrant box with ubuntu</p>
  
  <p>I added an ImageField to one of my models. Everything was working fine. Today (after rebooting) the same code throws this error (whenever I call manage.py):</p>
  
  <pre><code>`Traceback (most recent call last):
    File "manage.py", line 8, in &lt;module&gt;
      from django.core.management import execute_from_command_line
    File "/usr/local/lib/python3.5/dist-packages/django/core/management/__init__.py", line 13, in &lt;module&gt;
      from django.core.management.base import (
  ... more files in /usr/local/lib/python3.5/dist-packages/..
      from django.core import validators
    File "/usr/local/lib/python3.5/dist-packages/django/core/validators.py", line 507, in &lt;module&gt;
      allowed_extensions=get_available_image_extensions(),
    File "/usr/local/lib/python3.5/dist-packages/django/core/validators.py", line 502, in get_available_image_extensions
      Image.init()
  AttributeError: module 'PIL.Image' has no attribute 'init'
  </code></pre>
  
  <p>The exception thrown in the validators.py from django</p>
  
  <pre><code>def get_available_image_extensions():
      try:
          from PIL import Image
      except ImportError:
          return []
      else:
          Image.init()
          return [ext.lower()[1:] for ext in Image.EXTENSION.keys()]
  </code></pre>
  
  <p>I installed Pillow as the <a href="https://docs.djangoproject.com/en/1.11/ref/models/fields/#imagefield" rel="nofollow noreferrer">doc</a> says</p>
  
  <pre><code>sudo pip3 install Pillow 
  </code></pre>
  
  <p>In the python3 console, I can import Image from PIL correctly, but it doesn't have the init() method. What should I do? </p>
  
  <p>Thanks</p>