My guideline is that I want to see something working as soon as possible. Even if it uses ugly templates, the view is very basic, or even the models are not totally complete.
This is roughly the order of things:
Settings
Models
Syncdb
Urls
Very basic views (mostly using generic views, so very often no need to write any views myself)
Create base template (again, nothing fancy)
Create a template for each of the views, extending the base template
Create tests
And then, I go on a create better models, better views, more fancy templates, or more tests as needed, but not in any specific order - Every time I deal with what I think would give the best value for my time, but the most important thing is every change is small. Once you have it running, you can see and test most changes you make in a matter of minutes.
发布评论
评论(1)
我的指导方针是我希望尽快看到一些成果。即使它使用丑陋的模板,视图也非常基本,甚至模型也不完全完整。
大致的顺序:
然后,我继续根据需要创建更好的模型,更好的视图,更奇特的模板或更多测试,但不按任何特定顺序 - 每次我处理什么我认为这会给我的时间带来最大的价值,但最重要的是每一个变化都很小。一旦运行,您就可以在几分钟内查看并测试您所做的大部分更改。
My guideline is that I want to see something working as soon as possible. Even if it uses ugly templates, the view is very basic, or even the models are not totally complete.
This is roughly the order of things:
And then, I go on a create better models, better views, more fancy templates, or more tests as needed, but not in any specific order - Every time I deal with what I think would give the best value for my time, but the most important thing is every change is small. Once you have it running, you can see and test most changes you make in a matter of minutes.