docs: Add missing imports in tutorial as pointed in #2078

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Carlos Henrique Lima Melara 2021-04-15 15:05:33 -03:00 committed by Sunil Mohan Adapa
parent 213e01abcd
commit 08a7c7870e
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2
2 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,8 @@ function normally.
.. code-block:: python3
:caption: ``__init__.py``
from django.utils.translation import ugettext_lazy as _
from plinth import app as app_module
from . import manifest

View File

@ -36,7 +36,7 @@ a link in FreedomBox web interface. Let us add a link in the apps list. In
.. code-block:: python3
:caption: ``__init__.py``
from plinth.menu import main_menu
from plinth import menu
class TransmissionApp(app_module.App):
...