Relative paths in Django settings

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

Relative paths, usually used in

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


RSS Icon Subscribe to comments

You need to login to post a comment.