#21521: Provide a boiler plate free ./manage.py startapp command
------------------------------+--------------------
Reporter: anonymous | Owner: nobody
Type: New feature | Status: new
Component: Core (Other) | Version: 1.6
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 1 | UI/UX: 1
------------------------------+--------------------
Django still requires a lot of boiler plate to start with.
Running manage.py startapp could ask questions just like manage.py syncdb
does to create super user, such as :
- do you want to create a hello_world view and template ? (this will
create a views.hello, app/templates/app/base.html and
app/templates/app/hello.html files and an entry in app/urls.py if it
exists)
- do you want to add the app to INSTALLED_APPS ? (this will copy it the
first INSTALLED_APPS it founds and appears only if you don't have more
than a simple settings.py file)
- do you want to add the app to the project urlconf ? (this will appears
only if you have nothing more than a simple project/urls.py file)
Then it prints what it did with full path to edited files, so people can
actually SEE how you bootstrap an app.
If you choose no to any of theses question, the command gives you helpful
clues such as :
"You may want to add this app to your INSTALLED_APPS and project.urls.py"
Of course you can disable all that stuff with --noinput.
--
Ticket URL: <https://code.djangoproject.com/ticket/21521>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" 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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/052.645df5c43bebfdda684d47ca5203a6ec%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.