Posted By

miloshadzic on 03/06/11


Tagged


Versions (?)

Relative paths in Django settings


 / Published in: Django
 

Relative paths, usually used in settings.py.

  1. import os
  2. here = lambda x: os.path.join(os.path.abspath(os.path.dirname(__file__)), x)

Report this snippet  

You need to login to post a comment.