evennia.web.website.views.accounts

Views for managing accounts.

class evennia.web.website.views.accounts.AccountMixin[源代码]

基类: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

evennia.accounts.accounts.DefaultAccount 的别名

form_class

evennia.web.website.forms.AccountForm 的别名

class evennia.web.website.views.accounts.AccountCreateView(**kwargs)[源代码]

基类: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.