Skip to content

Commit

Permalink
Add force_commit to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ahopkins committed Dec 28, 2020
1 parent 92c417f commit 54f3a2c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/sanic/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,8 @@ When you instantiate a Sanic instance, that can be retrieved at a later time fro
app = Sanic.get_app("my_awesome_server")
If you call ``Sanic.get_app("non-existing")`` on an app that does not exist, it will raise ``SanicException`` by default. You can, instead, force the method to return a new instance of ``Sanic`` with that name:

.. code-block:: python
app = Sanic.get_app("my_awesome_server", force_create=True)

0 comments on commit 54f3a2c

Please sign in to comment.