diff --git a/doc/dev/tutorial/components.rst b/doc/dev/tutorial/components.rst index a3900fb16..ff0773637 100644 --- a/doc/dev/tutorial/components.rst +++ b/doc/dev/tutorial/components.rst @@ -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 diff --git a/doc/dev/tutorial/view.rst b/doc/dev/tutorial/view.rst index 4fd60e06a..29c2a79c8 100644 --- a/doc/dev/tutorial/view.rst +++ b/doc/dev/tutorial/view.rst @@ -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): ...