Added the introduction to the documentation.

This commit is contained in:
2022-12-06 18:54:40 +08:00
parent 9997985d8c
commit 30106c7e9f
3 changed files with 104 additions and 0 deletions

View File

@@ -2,6 +2,8 @@ Examples
========
.. _example-alone-simple:
Simple Applications with Flask-Digest-Auth Alone
------------------------------------------------
@@ -38,6 +40,8 @@ In your ``my_app.py``:
return redirect(request.form.get("next"))
.. _example-alone-large:
Larger Applications with ``create_app()`` with Flask-Digest-Auth Alone
----------------------------------------------------------------------
@@ -91,6 +95,8 @@ In your ``my_app/views.py``:
app.register_blueprint(bp)
.. _example-flask-login-simple:
Simple Applications with Flask-Login Integration
------------------------------------------------
@@ -132,6 +138,8 @@ In your ``my_app.py``:
return redirect(request.form.get("next"))
.. _example-flask-login-large:
Larger Applications with ``create_app()`` with Flask-Login Integration
----------------------------------------------------------------------
@@ -195,6 +203,8 @@ authentication mechanism. You can change the actual authentication
mechanism without changing the views.
.. _example-unittest:
A unittest Test Case
--------------------
@@ -224,6 +234,8 @@ A unittest Test Case
.. _example-pytest:
A pytest Test
-------------