[Answer]-Django: name 'SignupFormExtra' is not defined

1👍

You’ll need to import SignupFormExtra into your urls.py.

At the top of your urls.py:

from accounts.forms import SignupFormExtra

Make sure you have the proper relative path to your forms.py. This assumes your urls.py is in the same directory as forms.py.

EDIT:

Just re-read your question and saw the forms.py was in an app named accounts. I adjusted the answer so you’re importing from accounts.forms.

👤Alex

Leave a comment