diff --git a/docs/implementing.rst b/docs/implementing.rst index 910b9b32f..2c7755657 100644 --- a/docs/implementing.rst +++ b/docs/implementing.rst @@ -120,3 +120,41 @@ Users who only have a smartphone will have difficulty scanning the QR code during setup. You can directly show the secret key within the QR code in text form during setup by providing your own ``two_factor/core/setup.html`` template and using the ``secret_key`` context variable. + +Custom Templates +---------------- +To create a custom template, add a template called ``two_factor/_base.html``. +As a bare minimum, its contents should contain a ``content`` block to load the +login forms into and an ``extra_media`` block located in the ``
`` tag. + +Certain plugins can load additional static assets (CSS or JS) that are required +for the correct workings. + +You can use the provided ``two_factor/_base.html`` template as a reference. + +.. code-block:: django + + + + +