Hello,


I have a suggestion for an improvement to the startproject command. 
Currently, the command creates a project and a main folder that isn’t quite 
an app. It doesn’t have any models, views, tests, etc. I realize this is by 
design, and for many cases is the correct fit.


However, there are also many cases where you want to use that main folder 
as an app itself. While this is trivial (create apps.py, models.py, 
views.py, tests.py, migrations module and add <app name> into settings.py), 
it’s a bit repetitive and could certainly be streamlined with a flag passed 
to startproject. For example:

./manage.py startproject foo --app


There are many situations where using the primary folder as an app makes a 
great deal of sense, and optionally facilitating that style would certainly 
help projects get up and running that much faster.


Thank you for your consideration.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/3c865509-0a7b-4c9a-9b29-410be512bb76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to