mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
doc: Add filename to code snippets in tutorial
[sunil: Add caption for another file too] Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
1 parent
ec67b71aa6
commit
213e01abcd
6 files changed
+29
-1
No files matched your search
@@ -11,6 +11,7 @@ user visits this URL, a view is executed and a page is displayed. In ``urls.py``
|
||||
write the following:
|
||||
|
||||
.. code-block:: python3
|
||||
:caption: ``urls.py``
|
||||
|
||||
from django.conf.urls import url
|
||||
|
||||
@@ -33,6 +34,7 @@ a link in FreedomBox web interface. Let us add a link in the apps list. In
|
||||
``__init__.py`` add the following:
|
||||
|
||||
.. code-block:: python3
|
||||
:caption: ``__init__.py``
|
||||
|
||||
from plinth.menu import main_menu
|
||||
|
||||
@@ -83,6 +85,7 @@ section of the web interface that points to our view. We now need to create a
|
||||
view to show the app page for our app. In ``views.py``, let us add a view.
|
||||
|
||||
.. code-block:: python3
|
||||
:caption: ``views.py``
|
||||
|
||||
from plinth import views
|
||||
from plinth.modules import transmission
|
||||
|
||||
Reference in new issue
Block a user