forked from lingthio/Flask-User
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document Flask-User settings through autodoc.
- Loading branch information
Showing
30 changed files
with
695 additions
and
371 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Change Log | ||
========== | ||
Change history | ||
============== | ||
|
||
* v1.0 -- Initial version. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/* Switch off word hyphenation */ | ||
div.body p, | ||
div.body dd, | ||
div.body li { | ||
hyphens: None; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
Configure | ||
========= | ||
|
||
Flask-User is designed to be **largely configurable** and **almost fully customizable**. | ||
|
||
Flask-User default features and settings can overridden in one of two ways: | ||
|
||
1) By changing the settings in the application config file:: | ||
|
||
# Customize Flask-User settings | ||
USER_ENABLE_EMAIL = True | ||
USER_ENABLE_USERNAME = False | ||
|
||
2) By changing the setting in the ``UserManager.customize()``:: | ||
|
||
# Customize Flask-User | ||
class CustomUserManager(UserManager): | ||
|
||
def customize(self): | ||
# Customize Flask-User settings | ||
self.USER_ENABLE_EMAIL = True | ||
self.USER_ENABLE_USERNAME = False | ||
|
||
The :ref:`UserManager` documents all Flask-User settings (over 70 of them). | ||
|
||
If a setting is defined in both the application config file and in ``UserManager.customize()``, | ||
the ``UserManager.customize()`` setting will override the config file setting. | ||
|
||
To keep the code base simple and robust, we offer no easy way to change | ||
the '/user' base URL or the '/flask_user' base directory in bulk. | ||
Please copy them from the :ref:`UserManager` docs use your editor to find-and-replace these bases. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.