B
B
BogBel2015-11-17 16:11:07
Django
BogBel, 2015-11-17 16:11:07

How to add the ability for the user to enter first_name, last_name during django-registration?

Advise the solution to the problem, I know that the standard User has optional first_name and last_name fields. In what ways can the user be given the opportunity, immediately, on a par with the username and password, to enter the name.

urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^home/', home_page),
    url(r'^admin_pannel/',admin_panel),
    url(r'', include('registration.backends.simple.urls')),
    url(r'', include('social_auth.urls')),
]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zelsky, 2015-11-17
@zelsky

Add fields in the form and send from when requested to the model.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question