Ok so I recall there are some commands you could put in the settings.py file so that basically when you move your django project to another directory it won\'t
settings.py
Django 1.8 already includes the project root directory as BASE_DIR:
BASE_DIR
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
And you can use it in your app by importing settings:
settings
from django.conf import settings ... ... print(settings.BASE_DIR)