moo.shell.views.SignupView
- class moo.shell.views.SignupView(**kwargs)
Allauth signup view that allows already-authenticated users to register.
Allauth normally redirects authenticated users away from the signup page. This subclass logs them out first so they can create a new account without needing to log out manually.
- __init__(**kwargs)
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
Methods
__init__(**kwargs)Constructor.
as_view(**initkwargs)Main entry point for a request-response process.
closed()dispatch(request, *args, **kwargs)form_invalid(form)If the form is invalid, render the invalid form.
form_valid(form)If the form is valid, redirect to the supplied URL.
get(request, *args, **kwargs)Handle GET requests: instantiate a blank version of the form.
get_ajax_data()get_authenticated_redirect_url()get_context_data(**kwargs)Insert the form into the context dict.
get_default_success_url()get_form([form_class])Return an instance of the form to be used in this view.
get_form_class()Return the form class to use.
get_form_kwargs()Return the keyword arguments for instantiating the form.
get_initial()Return the initial data to use for forms on this view.
get_next_url()get_prefix()Return the prefix to use for forms.
get_success_url()We're in a mixin, so we cannot rely on the fact that our super() has a get_success_url.
get_template_names()Return a list of template names to be used for the request.
http_method_not_allowed(request, *args, **kwargs)is_open()options(request, *args, **kwargs)Handle responding to requests for the OPTIONS HTTP verb.
passthrough_next_url(url)post(request, *args, **kwargs)Handle POST requests: instantiate a form instance with the passed POST variables and then check if it's valid.
put(*args, **kwargs)render_to_response(context, **response_kwargs)Return a response, using the response_class for this view, with a template rendered with the given context.
setup(request, *args, **kwargs)Initialize attributes shared by all view methods.
Attributes
content_typeextra_contexthttp_method_namesinitialprefixredirect_field_namesuccess_urltemplate_enginetemplate_nametemplate_name_signup_closedview_is_async