How to Solve NameError: name 'UserRegistrationForm' is not defined -- .forms
Solution: Import the 'UserRegistrationForm' module
To Solve the error, add the following line to the top of your code.
from .forms import UserRegistrationForm
For more information:
Python .forms UserRegistrationForm