This repository has been archived by the owner on May 27, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added configuration sections to documentation
- Loading branch information
Showing
3 changed files
with
47 additions
and
2 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
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,45 @@ | ||
============= | ||
Configuration | ||
============= | ||
|
||
The following configuration options are available: | ||
|
||
``WAGTAIL_SOCIALFEED_CONFIG`` | ||
----------------------------- | ||
The configuration for the social media accounts. :: | ||
|
||
WAGTAIL_SOCIALFEED_CONFIG = { | ||
'twitter': { | ||
'CONSUMER_KEY': 'SOME_KEY', | ||
'CONSUMER_SECRET': 'SOME_SECRET', | ||
'ACCESS_TOKEN_KEY': 'SOME_KEY', | ||
'ACCESS_TOKEN_SECRET': 'SOME_SECRET' | ||
}, | ||
'facebook': { | ||
'CLIENT_ID': 'SOME_ID', | ||
'CLIENT_SECRET': 'SOME_SECRET', | ||
} | ||
} | ||
|
||
No credentials are needed for Instagram. | ||
|
||
Defaults to ``{}`` | ||
|
||
|
||
``WAGTAIL_SOCIALFEED_CACHE_DURATION`` | ||
------------------------------------- | ||
|
||
The cache timeout (in seconds) for the social feed items | ||
|
||
Defaults to ``900`` | ||
|
||
|
||
``WAGTAIL_SOCIALFEED_SEARCH_MAX_HISTORY`` | ||
----------------------------------------- | ||
|
||
The amount of time the module is allowed to search through the history of the social feed. | ||
This is only used for the moderator view. In the moderator view it is possible to enter | ||
a search query. For the search to return a usable data-set, multiple result-pages are requested | ||
from the social feed source. But it does need to have a limit. | ||
|
||
Defaults to ``timedelta(weeks=26)`` |
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 |
---|---|---|
|
@@ -14,6 +14,7 @@ Contents: | |
readme | ||
installation | ||
usage | ||
configuration | ||
contributing | ||
|
||
Indices and tables | ||
|