- [Answer]-Django startapp with custom template unicodeerror
- [Answer]-Property of model to return iterable to template
- [Answer]-Django Paging With Same GET
- [Answer]-Django get count based on foreign Key for every month
- [Answer]-Problems passing a dictionary to a template in Django
0👍
The django’s official approach to create test data are fixtures, you can either write them yourself or use any fixture creation tool like autofixture.
What I’ve found with fixtures is that if your model changes, you need to manually change your fixture, this is very error prone and a little painful. There are a lot of questions on testing with several models in django, you may want to check this ones:
And if you want to go deeper with testing in django, here is another very good one
- [Answer]-Django – Remove the Checkbox in ClearableFileInput widget
- [Answer]-Displaying view variables in template with Django?
Source:stackexchange.com