Updating the default startapp template

I would be happy with adding a minimal urls.py like:

from django.urls import path

# Create your URL patterns here.
urlpatterns = []

I think we could cite past discussions as sufficient consensus. The total on the mailing list discussions seems to be mostly positive, and Cory’s post is a repeat of a request since 17 years ago.

This gets more bikesheddy: class-based or function-based view? what would the URL be, and should it have a parameter? And so on.

I’m more in favour of copying the existing templates: some imports and a comment on what to do next.

Idea: override startapp in SaaS Pegasus projects to default the template option to your custom template.

3 Likes