Your Django Development process/steps (Step by Step) [closed]
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this questionI want to know step by step process of how folks develop on Django here. I have seen that whenever I try to create a website in Django, I always get confused amongst:
开发者_高级运维- DB Schema/models.py
- UI/Template Structure
- Login module
- urls.py
- views.py
How do you approach this? I may have missed something. You do not need to elaborate everything, just stepwise what you do. If you do two things at the same time (or side-by-side), that would also be helpful to mention.
Thanks a lot.
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.
精彩评论