Answer the question
In order to leave comments, you need to log in
Does Django allow you to create an application inside a project, second level?
There is a project, the application structure is normal, as described in the documentation:
проект:
проект_setting
static_общая
template_общая
приложение_1 - стандатрной конфигурации
каталог
приложение_2
Answer the question
In order to leave comments, you need to log in
Well, generally speaking, you can, but at the same time, you can’t.
For example, I put apps in the apps folder.
But in jang a lot requires applications to be rooted. For example, the definition of FK or an indication of the user model.
As a result, in order for this to work, I wrote in settings.py
sys.path.insert(0, os.path.join(BASE_DIR, 'apps'))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question