@ssl_required
@logout_required
@require_http_methods(['GET', 'POST'])
@anonymous_csrf
@mobile_template('users/{mobile/}')
def register(request, template, contributor=False):
    if request.method == 'GET' and not request.MOBILE:
        url = reverse('users.auth') + '?' + request.GET.urlencode()
        return HttpResponsePermanentRedirect(url)

    form = handle_register(request)
    if form.is_valid():
        return render(request, template + 'register_done.html')

    if request.MOBILE:
        return render(request, template + 'register.html', {
            'form': form})

    return user_auth(request, register_form=form, contributor=contributor)
Register a new user.
dataset/ETHPy150Open mozilla/kitsune/kitsune/users/views.py/register