我们没有创建样板视图方法,而是将所有的业务逻辑都放入了urls . py文件中,它们都由Django提供的通用视图进行处理。
Instead of creating boilerplate view methods, all of the business logic is in the urls.py file and is handled by the generic view methods supplied by Django.
这两个方法减少了很多Web应用程序中的样板代码。
These two methods remove a lot of boilerplate code in most Web applications.
如果说一定要列出推行的方法,那么通过多学多做,树立样板区,然后在公司全面展开是可取的。
If do list implementation method, then learn to do more, establish a model, and then to spread out in the round is desirable.
应用推荐