﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
28307	Add more stub files in startapp template	Mark	nobody	"I find that the standard django app template (the one used by the `startapp` command) is a little bit ""messy"" and it seems to me that encourages not-so-clean architectures for the apps.

This is what I suggest:
* A separate `forms.py` file (to discourage keeping form classes in `views.py` file)
* Separate `middleware.py` and `mixins.py` files (for the same reason as above, and to make the third party app architectures more similar to django itself, with less doubts for the developer)
* A separate `urls.py` file (this is another file I find always creating myself just after the app creation)
* Refactor `tests.py` in a `tests` module, also to encourage modularity of the testsuite instead of creating a mammoth `tests.py` file by adding ""just one more test case"" and avoiding the hassle of refactoring the whole thing after some development

I forked the django project on github and created a branch in my repository, here: https://github.com/mcagl/django/tree/mcagl/better-startapp-template

The branch does not conflict with the `master` branch"	Cleanup/optimization	closed	Core (Management commands)	dev	Normal	wontfix			Unreviewed	1	0	0	0	0	0
