Djangoã«ã¯ããã³ãã¬ã¼ããã¡ã¤ã«å ã§ã®ã¿å©ç¨ã§ãããã³ãã¬ã¼ãå¤æ°ã¨ãã°ãã¼ãã«å¤æ°ã®ããã«ãã©ã®ãã³ãã¬ã¼ããã¡ã¤ã«ãããå©ç¨ã§ãããã³ãã¬ã¼ãå¤æ°ãåå¨ãã¦ãã¾ãã ãã®ãããªã°ãã¼ãã«å¤æ°çãªãã³ãã¬ã¼ãå¤æ°ã®ãã¨ãcontext_processorã¨å¼ã³ã¾ããsettings.pyã«ã¦ãTEMPLATE_CONTEXT_PROCESSORSå¤æ°ã«ããã³ãã¬ã¼ãå¤æ°ãè¿ãã¡ã½ãããç»é²ãã¦ããã¨ãã©ã®ãã¥ã¼ããã§ãå½è©²å¤æ°ãã³ã³ããã¹ãã«è¿½å ãããã¨ãå¯è½ã¨ãªãã¾ãã $ emacs settings.py TEMPLATE_CONTEXT_PROCESSORS = ( "hogeapp.context_processors.user_name", ..., ) $ emacs hogeapp/context_processors.py def user_name(reques
{{#tags}}- {{label}}
{{/tags}}