From 849632d24493de08d721e23c0e7af3dcb7182d59 Mon Sep 17 00:00:00 2001 From: Brylie Christopher Oxley Date: Thu, 10 Jan 2019 11:05:03 +0200 Subject: [PATCH] Add note to emphasize necessary imports Fixes #102 --- docs/simple_use.rst | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/simple_use.rst b/docs/simple_use.rst index 52789c58..28950406 100644 --- a/docs/simple_use.rst +++ b/docs/simple_use.rst @@ -62,8 +62,10 @@ Direct use in this manner, without any application state or use of live updating, is equivalent to inserting an ``iframe`` containing the URL of a ``Dash`` application. -The registration code needs to be in a location -that will be imported into the Django process before any model or -template tag attempts to use it. The example Django application -in the demo subdirectory achieves this through an import in the main urls.py file; any views.py would also be sufficient. +.. note:: + The registration code needs to be in a location + that will be imported into the Django process before any model or + template tag attempts to use it. The example Django application + in the demo subdirectory achieves this through an import in the main ``urls.py`` file, + but any ``views.py`` would also be sufficient.