我有3類這樣的查詢: class Person (models.Model)
name = models.CharField(max_length=200)
class Device (models.Model)
mobile = models.CharField(max_length=200)
class Uses (models.Model)
....
當我在過去的幾周裏嘗試學習一些Angular時,我採用了特定的應用程序體系結構。 假設一箇中間大的SPA,我創建視圖和應用maincontroller: <html ng-app="app">
<body ng-controller="appCtrl">
<!-- All of the view goes in here -->
</body>
</html>