Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django: Difference between BASE_DIR and PROJECT_ROOT?

Tags:

python

django

From settings.py:

BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))

What's the difference between these two?

like image 906
TheEyesHaveIt Avatar asked Jun 17 '16 18:06

TheEyesHaveIt


1 Answers

They're almost the same thing. BASE_DIR is where your manage.py lies, and PROJECT_ROOT is BASE_DIR + your_project_name (where settings.py is).

like image 85
Anonymous Avatar answered Nov 08 '22 08:11

Anonymous