try to detect the project root based on DJANGO_SETTINGS_MODULE