added ROOT_DIRECTORY_NAME in settings

deploy the use of BASE_URL in settings