You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ta...@apache.org on 2021/08/26 22:17:25 UTC

[superset] branch master updated: docs: make code snippet usable with required imports (#16473)

This is an automated email from the ASF dual-hosted git repository.

tai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new fd64561  docs: make code snippet usable with required imports (#16473)
fd64561 is described below

commit fd6456186df07a14fad2007b39a4085fe43dc626
Author: Ke Zhu <sh...@users.noreply.github.com>
AuthorDate: Thu Aug 26 18:16:30 2021 -0400

    docs: make code snippet usable with required imports (#16473)
---
 docs/src/pages/docs/installation/configuring.mdx | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/docs/src/pages/docs/installation/configuring.mdx b/docs/src/pages/docs/installation/configuring.mdx
index d7437f2..922f97d 100644
--- a/docs/src/pages/docs/installation/configuring.mdx
+++ b/docs/src/pages/docs/installation/configuring.mdx
@@ -207,7 +207,11 @@ CUSTOM_SECURITY_MANAGER = CustomSsoSecurityManager
 the app object and can alter it in any way. For example, add `FLASK_APP_MUTATOR` into your
 `superset_config.py` to setup session cookie expiration time to 24 hours:
 
-```
+```python
+from flask import session
+from flask import Flask
+
+
 def make_session_permanent():
     '''
     Enable maxAge for the cookie 'session'