# evennia.web.website.views.accounts

Views for managing accounts.

class `evennia.web.website.views.accounts.``AccountMixin`

  Bases: `evennia.web.website.views.mixins.TypeclassMixin`

  This is used to grant abilities to classes it is added to.

  Any view class with this in its inheritance list will be modified to work with Account objects instead of generic Objects or otherwise.

  `model`

    alias of `evennia.accounts.accounts.DefaultAccount`

  `form_class`

    alias of `evennia.web.website.forms.AccountForm`

class `evennia.web.website.views.accounts.``AccountCreateView`(**kwargs)

  Bases: `evennia.web.website.views.accounts.AccountMixin`, `evennia.web.website.views.mixins.EvenniaCreateView`

  Account creation view.

  `template_name` = 'website/registration/register.html'
  `success_url`
  `form_valid`(form)

    Django hook, modified for Evennia.

    This hook is called after a valid form is submitted.

    When an account creation form is submitted and the data is deemed valid, proceeds with creating the Account object.