Opened 2 years ago
Last modified 2 years ago
#34815 closed Cleanup/optimization
urls file in startapp command — at Version 1
| Reported by: | Amin Aminian | Owned by: | Faishal Manzar |
|---|---|---|---|
| Component: | Core (Management commands) | Version: | 4.2 |
| Severity: | Normal | Keywords: | startapp |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description (last modified by )
Hi!sing `
When ustartapp command, Django does not create urls.py` and I found myself creating this file all the time.
I wanted to suggest to add this file in startapp process, with proper template like this:
https://code.djangoproject.com/ticket/34815#{{{
from django.urls import path
urlpatterns = [
]
}}}
Which can be helpful for following practices.
Change History (1)
comment:1 by , 2 years ago
| Description: | modified (diff) |
|---|---|
| Owner: | changed from to |
| Status: | new → assigned |
Note:
See TracTickets
for help on using tickets.
I feel the same issue i think 99% of time when you create a app you create this file unless the app is very small
So i am assigning it to myself, but will start working after community discussion