Django - How to deal with the paths in settings.py on collaborative projects

后端 未结 5 1290
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-01 08:17

I have just started a feasibility study on Django for my company and I have noticed the need for absolute paths on settings.py:

TEMPLATE_DIRS = (
   # Put string         


        
5条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-01 09:11

    settings.py is just another Python module. Import and use the various functions in os.path to build your paths.

提交回复
热议问题