Difference between os.path.dirname(os.path.abspath(__file__)) and os.path.dirname(__file__)
Difference between os.path.dirname(os.path.abspath(__file__)) and os.path.dirname(__file__) Question: I am a beginner working on Django Project. Settings.py file of a Django project contains these two lines: BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__)) I want to know the difference as I think both are pointing to the same directory. Also it would be great help if you could …