mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
docs: Add missing imports in tutorial as pointed in #2078
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
213e01abcd
commit
08a7c7870e
@ -18,6 +18,8 @@ function normally.
|
|||||||
.. code-block:: python3
|
.. code-block:: python3
|
||||||
:caption: ``__init__.py``
|
:caption: ``__init__.py``
|
||||||
|
|
||||||
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
from plinth import app as app_module
|
from plinth import app as app_module
|
||||||
|
|
||||||
from . import manifest
|
from . import manifest
|
||||||
|
|||||||
@ -36,7 +36,7 @@ a link in FreedomBox web interface. Let us add a link in the apps list. In
|
|||||||
.. code-block:: python3
|
.. code-block:: python3
|
||||||
:caption: ``__init__.py``
|
:caption: ``__init__.py``
|
||||||
|
|
||||||
from plinth.menu import main_menu
|
from plinth import menu
|
||||||
|
|
||||||
class TransmissionApp(app_module.App):
|
class TransmissionApp(app_module.App):
|
||||||
...
|
...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user