官术网_书友最值得收藏!

Dividing a project into apps

Django applications are called projects. A project is made up of several applications or apps. An app is a Python package that provides a set of features for a common purpose such as authentication or thumbnails.

Ideally, each app must be reusable and loosely coupled to others. You can create as many apps as you need. Never be afraid to add more apps or refactor the existing ones into multiple apps. A typical Django project contains 15-20 apps.

An important decision to make at this stage is whether to use a third-party Django app or build one from scratch. Third-party apps are ready-to-use apps, which are not built by you. Most packages are quick to install and set up. You can start using them in a few minutes.

On the other hand, writing your own app often means designing and implementing the models, views, test cases, and so on yourself. Django will make no distinction between apps of either kind.

主站蜘蛛池模板: 云梦县| 泸水县| 龙江县| 合阳县| 崇文区| 乌兰察布市| 小金县| 岑溪市| 高安市| 岐山县| 铜川市| 剑阁县| 广昌县| 玛沁县| 红河县| 商城县| 泰来县| 石柱| 兴山县| 塔河县| 岗巴县| 沾化县| 甘泉县| 上饶市| 高阳县| 古蔺县| 林甸县| 中山市| 佛坪县| 东光县| 新安县| 溆浦县| 边坝县| 手游| 尤溪县| 河池市| 林周县| 浦县| 自治县| 蓬莱市| 马鞍山市|