#34815: urls file in startapp command
-------------------------------------+-------------------------------------
Reporter: Amin Aminian | Owner: Faishal
Type: | Manzar
Cleanup/optimization | Status: assigned
Component: Core (Management | Version: 4.2
commands) |
Severity: Normal | Resolution:
Keywords: startapp | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Faishal Manzar):
* owner: nobody => Faishal Manzar
* status: new => assigned
Old description:
> Hi!
> When using `startapp` 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:
>
> {{{
> from django.urls import path
>
> urlpatterns = [
>
> ]
> }}}
>
> Which can be helpful for following practices.
New description:
Hi!sing `
When ustartapp` 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:
''https://code.djangoproject.com/ticket/34815#{{{
from django.urls import path
urlpatterns = [
]
}}}
Which can be helpful for following practices.
--
Comment:
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
--
Ticket URL: <https://code.djangoproject.com/ticket/34815#comment:1>
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018a6ba7b245-02a8aa68-23a0-4c71-985e-0091670dd77a-000000%40eu-central-1.amazonses.com.