Categories
What is the difference between os.path.join(BASE_DIR, X) and BASE_DIR / X?
The essence of the question seems to be clearly formulated. Some paths in django.settings are specified with os and some with /, what's the difference?
Answer the question
In order to leave comments, you need to log in
In 3.1 (or a little earlier, I don't remember exactly) django started using pathlib, where you can do BASE_DIR / X
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question