我们没有创建样板视图方法,而是将所有的业务逻辑都放入了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.
考虑到包装这个方法的匿名内部类的真正用途,我留下了几行难看的样板代码—addorderfrom方法体中的两行代码。
I'm left with some ugly boilerplate code because of the anonymous inner class wrapping this method's real purpose - the two lines of code that appear in the body of the addOrderFrom method.
然而,Lombok有一个很智能的方法来解决样板代码问题。
Lombok has a clever solution to the boilerplate code problem, however.
文章按照弹性薄板的光滑性要求构造样板插值函数,这是一种可普遍运用于各类问题的插值新方法。
In this paper, according to the kirchhoff's plate continuance conditions, sample plate interpolation for functions, which is a new interpolating method, is constructed.
研究了基于BP模型神经网络的故障诊断方法,它只需来自生产实际的大量样板实例或领域专家的知识训练神经网络。
The method of fault diagnosis based on BP model neural network is studied, in which enough typical fault samples or expert knowledge are needed to train the neural network.
给出了OLED样板的测试评估结果,表明了这种基于CCD的测试平台与评估理论的方法是快捷而有效的。
The testing and evaluating results of OLED sample panel proved that the testing bench and the evaluating method of OLED luminance uniformity based on CCD are convenient and available.
并提出一种精确可行的在小展角条件下标定圆弧样板的方法。
And proposed a kind of accurate and feasible method of evaluate arc model under the condition of small unfold Angle.
介绍了一种借助数码相机拍摄和计算机软件对轧钢孔型样板进行精确检验的新方法。
The paper introduces a new method of precise detection on rolling pass template with the help of digital camera photographing and computer software.
目前柱面镜检测的主要方法是样板比较法和干涉法。
Recently the main test methods for cylindrical mirror are template comparison measurement and interference measurement.
前言: 在从事服装平面结构制图与样板的教学工作中,制图的方法多采用日本的“文化式原型。
During the course of teaching structure drawing and sample plate of fashion, the method mostly adopted is Cultural model of Japan.
本文主要介绍玻璃钢管道系统所用的三通、弯头等管件样板的制作方法及有关的设计计算,以提高玻璃钢管件的生产效率。
This paper mainly introduces designing and manufacturing methods of templates for FRP pipe fittings such as tees, elbows used in FRP pipe system for sake of enhancing production efficiency.
袖子、三角裤样板套料方法包括互套法排料、斜套法排料、叉套法排料。
The layout methods for sleeves and briefs include curve inserted layout, bias layout and inserting layout.
另一个聪明的方法就是买促销货,锁定一些样板销售,或者去折扣店买大牌设计师设计的手袋。
Another smart way to get what you want for less is shopping sales, look for sample sales or go to outlets for authentic designer bags at really low prices.
本文详细介绍了用于齿轮仪器校准的齿轮样板模数、压力角、螺旋角等参数计算方法。
The way of calculating the parameters of modulus, pressure angle and helix angle of the gear masters that are used to calibrate gear instruments is in detail in this paper.
为缩短检验时间,采用强制干燥方法制备样板,对需要常温自干漆膜的光泽和色泽进行测定。
In order to shorten test time, a forced drying method is adopted in preparing sample so as to measure gloss and colour of self-curing paint film at ambient temperature.
该方法计算简单,制作方便,且样板精度高,实用性强。
The method is simple in calculation and convenient in manufacture. The shell sample plate is accurate and practical.
论述了蜗轮圆弧样板的设计原理及设计思路,说明了样板设计方法以及设计和使用要点。
The principle and idea of designing the arc template of wormwheel are discussed. The designing method and gist in the design and use of the template are explained.
测量方法:为使测点的位置准确,在测量前应根据磁极形状制作测点样板(用有机玻璃板或木板)。
Measuring method: in order to make the point location accurate, in measurement shall, before making point polarity shape according to the sample (with organic glass or planks).
我们的方式也允许计算生物学家集中在开发和应用新方法上,而不是编写样板基础设施代码。
Our approach also allows computational biologists to focus on developing and applying new methods instead of writing boilerplate infrastructure code.
提出了服装大批量定制设计方法,包括模块化开发和建模、款式设计、样板设计和排料设计等方法。
The DFMC methods for apparel are proposed, which consist of the development of modularized product, apparel modeling, fashion customization, pattern variant design and cutting scheme design.
把前身样板放在一张透明的纸上,用前面同样的方法定点标出所需的省道位置。
Lay the front bodice block onto a clean sheet of paper. Site mark the required DART position using same procedure as before.
经标准样板测试对比和由记录曲线手算验证,本方法是可行的。
By comparison with the measurement of the prototype and through the checking computation of record curves, this method is satisfactory.
所得的结论对选取正确的展开方法、减小展开误差、提高样板精度很有意义。
The reached conclusion is significant for selecting correct development, decreasing developed error and increasing profile board precision.
通过表面催化样板反应“CO表面催化氧化”检验了该模拟模型和方法,与实验结果吻合。
This simulation model and method are tested by a typical surface catalysis reaction i. e. CO surface-catalytic oxidation. The simulative results are in agreement with those of the experiments.
系统采用基于点阵样板的校正方法,拟合理想像与实际像的关系,完成像素点的几何位置校正和灰度校正;
The hardware system is based on the dot-array plate arithmetic, fitting the correlation between ideal image and real image, and achieving the correction for location and gray-level of image pixels.
使用这种排料方法,样板宽度不能超过折叠后的宽度。
To use this layout, the pattern pieces cannot be wider than the width of the folded fabric.
该方法设计简单,制作方便,且精样板精度高,实用性强。
该方法设计简单,制作方便,且精样板精度高,实用性强。
应用推荐