#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
-------------------------------------+-------------------------------------
Description changed by Faishal Manzar:
Old 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.
New description:
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.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/34815#comment:2>
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/0107018a6baa67d0-95411760-e4fb-4994-9071-691373d58a7c-000000%40eu-central-1.amazonses.com.