2011-02-25から1日間の記事一覧
settings.pyでtemplatesディレクトリをダイナミックに指定する方法 The Django Book Chapter 4: Templatesより拝借。 import os.pathTEMPLATE_DIRS = ( os.path.join(os.path.dirname(__file__), 'templates').replace('\\','/'), ) ".replace('\\','/')"が…
settings.pyでtemplatesディレクトリをダイナミックに指定する方法 The Django Book Chapter 4: Templatesより拝借。 import os.pathTEMPLATE_DIRS = ( os.path.join(os.path.dirname(__file__), 'templates').replace('\\','/'), ) ".replace('\\','/')"が…