title: Django Utils six for Django 3.1.5
body: <p>I have a token generator that uses six</p>
  <pre><code>from django.contrib.auth.tokens import PasswordResetTokenGenerator
  from django.utils import six
  
  
  class AccountActivationTokenGenerator(PasswordResetTokenGenerator):
      def _make_hash_value(self, user, timestamp):
          return (
              six.text_type(user.pk) + six.text_type(timestamp)  + six.text_type(user.is_active)
          )
  
  account_activation_token = AccountActivationTokenGenerator()
  </code></pre>
  <p>This runs on Django 2.2 but my boss told me to run this on latest 3.1.5. However, six was already depreciated.</p>
  <p>I also checked this SO suggestion <a href="https://stackoverflow.com/a/65620383/13933721">https://stackoverflow.com/a/65620383/13933721</a></p>
  <p>Saying to do <code>pip install django-six</code> then change <code>from django.utils import six</code>  to <code>import six</code></p>
  <p>I did the installation and changes to the code but it gives error message:
  <code>ModuleNotFoundError: No module named 'six'</code></p>
  <p>I think I did something wrong or something is missing but I don't know how to proceed.</p>
  <p>Here is my pip freeze for reference</p>
  <pre><code>asgiref==3.3.1
  Django==3.1.5
  django-six==1.0.4
  djangorestframework==3.12.2
  Pillow==8.1.0
  pytz==2020.5
  sqlparse==0.4.1
  </code></pre>
  <p><strong>EDIT</strong></p>
  <p>It should had been <code>pip install six</code> not <code>pip install django-six</code></p>
  <p><code>pip install six</code> fixed my issue</p>