Opened 13 months ago

Closed 13 months ago

Last modified 13 months ago

#34815 closed Cleanup/optimization (duplicate)

urls file in startapp command

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 Faishal Manzar)

Hi!
When using startapp command, Django does not create urls.py and I found myself creating this file all the time.
I w'anted to suggest to add this file in startapp process, with proper template like this:

from django.urls import path


urlpatterns = [

]

Which can be helpful for following practices.

Change History (5)

comment:1 by Faishal Manzar, 13 months ago

Description: modified (diff)
Owner: changed from nobody to Faishal Manzar
Status: newassigned

well i thinks thats a good suggestion, and also i am completely in favor of it, before start working on this issue i think we should dicuss it in community forum,

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

comment:2 by Faishal Manzar, 13 months ago

Description: modified (diff)

in reply to:  1 comment:3 by Amin Aminian, 13 months ago

Replying to Faishal Manzar:

well i thinks thats a good suggestion, and also i am completely in favor of it, before start working on this issue i think we should dicuss it in community forum,

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

Thanks for your comment Faishal.
But I am totally willing to do this issue by myself (after community discussion) and have a contribution, it would be my honor.
Is it possible ?

comment:4 by Mariusz Felisiak, 13 months ago

Resolution: duplicate
Status: assignedclosed

This was discussed and rejected multiple times. Duplicate of #25943.

comment:5 by Faishal Manzar, 13 months ago

yes of course

Note: See TracTickets for help on using tickets.
Back to Top