title: Relative path in settings.py in django
body: <p>for various settings(MEDIA_ROOT,TEMPLATE_DIRS) in setting.py it is instructed to give absolute path.I have configured apache with mod_wsgi.I have a wsgi script in the folder named <code>apache</code> that redirects to <code>settings.py</code>.  </p>
  
  <pre><code>import os
  import sys
  
  path = 'D:/Projects/Dan'
  
  if path not in sys.path:
    sys.path.append(path )
  
  os.environ['DJANGO_SETTINGS_MODULE'] = 'Django.settings'
  
  import django.core.handlers.wsgi
  application = django.core.handlers.wsgi.WSGIHandler()
  </code></pre>
  
  <p>(don't misunderstand - Django is the name of my project.)</p>
  
  <p>Okay my question is - now that we have imported the path to my project to system path in the wsgi script, isn't it more feasible that I give a relative path in <code>settings.py</code>,since that would make deploying easier.If I am wrong please tell me the standard procedure so that I can set all the path in one file other than 3 files(Apache - httpd.conf, mod_wsgi - django.wsgi, django - settings.py).</p>