I am new to the python django framework and I could not quite understand why
os.path.dirname(__file__)
and
os.path.dirname(os.path.dirname(__file__))
return an empty string.
My folder structure is as follows:
djangoWorkspace/
tangoWithDjangoProject/
rango/
tangoWithDjangoProject/
settings.py
Settings.py contains the code for the dirname.