#26661: Why not using AppConfig's name attribute instead of app_name in urls.py?
--------------------------------------+------------------------------------
Reporter: john-bonachon | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Core (URLs) | Version: 1.9
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Comment (by Michael):
I would just like to add its really confusing to call the url namespace
attribute `app_name`, which is associated with the `AppConfig.name`. It
immediately creates a false assumption to one trying to learn how this
machinery works. It tripped me up for years.
I recommend a different name, something like `url_namespace`, that would
be explicit, and self evident.
--
Ticket URL: <https://code.djangoproject.com/ticket/26661#comment:6>
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/01070182012f90b3-6cc6e38b-4864-4f06-b018-d6a9e1fcfe3c-000000%40eu-central-1.amazonses.com.