Closed alessandrorubio closed 7 years ago
+1 that's what I had to do as well for it to resolve correctly.
🚢 🍨
@rubi0 If you give me your last name then I'll be able to include you in the acknowledgements section of the book.
Alessandro Rubio Moraes
BASE_DIR definiton
Description
Exemple 5.30 show us the following definition:
And you suggest us to use the following folder structure with our django projects:
With this
DIRS
configuration:The problem is that using
BASE_DIR = Path(__file__).resolve().parent.parent
we're definingBASE_DIR
indjango_project/config
. In order to redirectBASE_DIR
to the right value, I would suggest to changeBASE_DIR = Path(__file__).resolve().parent.parent
toBASE_DIR = Path(__file__).resolve().parent.parent.parent
.