Skip to content
This repository was archived by the owner on Feb 29, 2020. It is now read-only.
This repository was archived by the owner on Feb 29, 2020. It is now read-only.

Using URLs' namespaces #6

@davidbgk

Description

@davidbgk

From http://lincolnloop.com/django-best-practices/apps/modules/urls.html

Should have a name attribute so they are reversible; APP_MODEL_VIEW, for example blog_post_detail or blog_post_list.

May I suggest:

Should have a name attribute and a namespace so they are reversible and unique to the application, for example blog:post_detail or blog:post_list.

References:
https://docs.djangoproject.com/en/dev/topics/http/urls/#defining-url-namespaces
https://docs.djangoproject.com/en/dev/topics/http/urls/#topics-http-reversing-url-namespaces

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions