I'm using django-userena-ce in my project. After configuring settings.py, i run my app and tried to sign up, but it calls its own template with form. How can i pass my own html template? I tried this code:
urlpatterns = [
path('signup/', 'userena.views.signup', {'template_name': 'userena/register.html'}, name="signup"),
]
but it doesn't help. What i'm doing wrong?
You do not define any view attributes in urlpatterns. It is just URLs definitions, nothing else.
To do what you ask for, create your own view which will be inheriting from
userena.views.signup, and will overwritetemplate_nameattribute. Something like this:Then in urls.py: