0
0
0ralo2021-02-14 14:00:37
Django
0ralo, 2021-02-14 14:00:37

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

1 answer(s)
D
Dr. Bacon, 2021-02-14
@0ralo

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 your question

Ask a Question

731 491 924 answers to any question