Skip to content

Question: Why Does Djoser Use Underscores (_) Instead of Hyphens (-) as Separators? #865

@larrysruss

Description

@larrysruss

Description

I noticed that Djoser uses underscores (_) as separators in its URL patterns instead of hyphens (-).

According to REST best practices, hyphens are generally preferred for URL readability and consistency (e.g., my-endpoint instead of my_endpoint).

Question

Is there a specific reason why underscores were chosen over hyphens in Djoser’s URL structure?
Would it be possible to update this for better alignment with REST conventions?

Thanks in advance for any insights!

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