base-dir

What is the absolute path of BASE DIR?

What is the absolute path of BASE DIR? Question: Django newbie here. I have trouble understanding the meaning of: BASE_DIR = os.path.dirname(os.path.dirname(__file__)) and STATIC_ROOT = os.path.join(os.path.dirname(BASE_DIR), ‘static’) STATICFILES_DIRS = ( os.path.join(os.path.dirname(BASE_DIR), “static”, “static”), ) What’s happening here? I take it the “file” is the settings.py file we are in (?), so the BASE_Dir is two …

Total answers: 8