I write something like CRM for a small production company on Django. With calculations, statistics and users. Django is studying recently and one can say that these are the first steps in practice. I don’t understand a bit when to create a separate application? Or is it normal, when the whole project and all possibilities are registered within one application (not a project, but an app)? It seems that the application in the django project is a program that solves a specific and specific task. Tell me who knows.
- This is only a matter of common sense and convenience. On the sort of question, "How many packages does the purchase decompose?" One thing is for sure - if a functional is completely independent and can be used in another project, it’s definitely worth turning it into a separate app. - Sergey Gornostaev
|
1 answer
A separate application is created when:
- logically separate functionality required
- need to apply on multiple sites at once
- distribute the application to others
- The application is growing too much, it is not convenient to work.
Applications in django are a package in python . They can be in the general system packages, virtual environment, project folder.
It is possible to overwrite one package with another. This feature must always be taken into account, we will call our application sys or json or another name from the standard library and we will get problems that are not always immediately visible. But at the same time, if we want to fix the version of django or the package, you can not create a virtual environment, but copy everything next to the project folder.
|