We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently is impossible to hijack idom-router internals to utilize something like Django's URL routing schema.
idom-router
We need some kind of way of configuring this behavior.
For example, within idom-router.conf perhaps there is a global called ROUTING_ENGINE: Callable.
idom-router.conf
ROUTING_ENGINE: Callable
The interface for this callable is up for debate.
The text was updated successfully, but these errors were encountered:
Here is Django's URL Resolver.
It has a check() method that determines one URL match out of a list of URLs (django.urls.path or django.urls.re_path) contained in self.url_patterns.
check()
django.urls.path
django.urls.re_path
self.url_patterns
Sorry, something went wrong.
I drafted up a PR anticipating some upstream changes.
Django would use this RoutePattern class to implement the route compiler interface:
RoutePattern
def compile_django_route(path: str) -> idom_router.CompiledPath: django_route = RoutePattern(path) return CompiledPath(django_route.regex, {k, v.to_python for k, v in django_route.converters.items()})
I will implement that router functionality within django-idom when the idom-router scaffolding is merged.
django-idom
rmorshea
Successfully merging a pull request may close this issue.
Currently is impossible to hijack
idom-router
internals to utilize something like Django's URL routing schema.We need some kind of way of configuring this behavior.
For example, within
idom-router.conf
perhaps there is a global calledROUTING_ENGINE: Callable
.The interface for this callable is up for debate.
The text was updated successfully, but these errors were encountered: