B
B
bituke2020-09-08 06:57:31
Django
bituke, 2020-09-08 06:57:31

How to save applications to a separate folder in django 3.2.1?

Updated django, and now I don't understand how you can save all files in a separate folder, and not in the project folder.
this code doesn't help anymore:

import os
import sys

PROJECT_ROOT = os.path.dirname(__file__)
sys.path.insert(0, os.path.join(PROJECT_ROOT, 'apps'))


In the new jung, os is not even imported out of the box, and everything is done through path.
Throw off a link to the tutorial, or explain how it's done, thanks in advance!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question