登錄之後更新導航

用上下文處理器app_context_processor定義函數 獲取session中保存的值 返回字典 處理器 @app.context_processor def mycontext(): username = session.get('user') if username: return {'username': username} else: return {}   在父模板中更新導航,插
相關文章
相關標籤/搜索