title: Accounts activation with Djoser and Django Rest Framework
body: <p>Am using Djoser for authentication in my project.
  Have been struggling to add email activation for over 4 days now but seems have failed to grab it fine as the documentation is a little hard for me to understand.</p>
  
  <p>This is my code
  <strong>settings.py</strong></p>
  
  <pre><code>#change auth model to custom model
  AUTH_USER_MODEL = 'userauth.User'
  
  #setting up email server
  EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
  EMAIL_HOST = 'smtp.gmail.com'
  EMAIL_HOST_USER = 'okumujustine01@gmail.com'
  EMAIL_HOST_PASSWORD = 'codemanuzmaster'
  EMAIL_PORT = 587
  EMAIL_USE_TLS = True
  DEFAULT_FROM_EMAIL = 'okumujustine01@gmail.com'
  
  #djoser login settings
  DJOSER = {
      'DOMAIN': 'localhost:8000',
      'SITE_NAME': 'net',
      'LOGIN_FIELD':'email',
      'USER_CREATE_PASSWORD_RETYPE':True,
      'ACTIVATION_URL': '#/users/activate/{uid}/{token}',
      'SEND_ACTIVATION_EMAIL': True,
      'SERIALIZERS':{
          'user_create':'userauth.serializers.UserCreateSerializer',
          'user':'userauth.serializers.UserCreateSerializer',
          'activation': 'djoser.email.ActivationEmail',
      }
  }
  </code></pre>
  
  <p>here is the email i receive after creating user</p>
  
  <pre><code>http://example.com/auth/users/activate/MQ/5c9-26bcab9e85e8a967731d
  </code></pre>
  
  <p>It shows <strong>example.com</strong> but i want it to change the web url to <strong>localhost:8000</strong> instead</p>
  
  <p>You're receiving this email because you need to finish activation process on example.com.</p>
  
  <p>Please go to the following page to activate account:</p>
  
  <pre><code>http://example.com/auth/users/activate/MQ/5c9-26bcab9e85e8a967731d
  </code></pre>
  
  <p>And if i change the web url manually to</p>
  
  <pre><code>http://127.0.0.1:8000/users/activate/MQ/5c9-26bcab9e85e8a967731d
  </code></pre>
  
  <p>it keeps returning</p>
  
  <pre><code>{
      "detail": "Authentication credentials were not provided."
  }
  </code></pre>
  
  <p>I really request you people to help me.</p>