URL namespaces
See original GitHub issueI need to include the URLs in an apps urls.py
that are already included and namespaced in the root urls. Can we make the the oidc_provider url namespace a setting
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
URL dispatcher - Django documentation
URL namespaces allow you to uniquely reverse named URL patterns even if different applications use the same URL names. It's a good practice...
Read more >URL namespaces | Mastering Django: Core - Packt Subscription
URL namespaces allow you to uniquely reverse named URL patterns even if different applications use the same URL names. It's a good practice...
Read more >Django Url naming and namespaces - Web Forefront
Django Url naming and namespaces: urls with name, url with arguments that use name, reverse in views and template links, urls.py with namespace...
Read more >A real example of URL Namespace - django - Stack Overflow
I am studying the Django documentation, but I encountered a part that I cannot understand: what is a real example of how use...
Read more >URL namespaces - Mastering Django: Core [Book] - O'Reilly
URL namespaces allow you to uniquely reverse named URL patterns even if different applications use the same URL names. It's a good practice...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sure.
An example of what I mean can be found here: https://github.com/RealmTeam/django-rest-framework-social-oauth2 with the
DRFSO2_URL_NAMESPACE
setting.To explain, I have quite a large project but to keep it simple let’s say I have a a django project with 2 apps,
auth
andusers
. The urls are included and namespaced in the root url conf like so.I want to include the
oidc_provider
urls inside the auth app urls but because that is already namespaced that is not possible. Therefore it would be useful to have a setting to specify the namespace manually.Thanks
that would be useful 🙂