Django created and managed more than one application in one project.
I wonder what is the criteria for creating an application and how to manage common resources (e.g. user model, base model, etc.).
django
The application creation criteria is up to you. Haha
If you want to divide each function, you can divide it, or you can combine it into one application and implement it. But in terms of management, it would be nice to see that you divide it up and manage it
And there is a from~import~
statement for common resource usage, so you can use it.
And to use the resources of each application,
Register at mysite/settings.py
and use it.
# Application definition
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'blog', #AddApplication
'board',
)
Reference URL: https://tutorial.djangogirls.org/ko/django_models/
623 Uncaught (inpromise) Error on Electron: An object could not be cloned
584 PHP ssh2_scp_send fails to send files as intended
922 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
573 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
© 2024 OneMinuteCode. All rights reserved.