Relative paths in Django settings


/ Published in: Django
Save to your folder(s)

Relative paths, usually used in settings.py.


Copy this code and paste it in your HTML
  1. import os
  2. here = lambda x: os.path.join(os.path.abspath(os.path.dirname(__file__)), x)

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.