How to Solve NameError: name 'account_activation_token' is not defined -- .tokens

Solution: Import the 'account_activation_token' module

To Solve the error, add the following line to the top of your code.

from .tokens import account_activation_token

 

For more information:
Python .tokens account_activation_token