Skip to content

Using Mount only for entirely independent apps? #1964

Answered by alex-oleshkevich
ni-aas asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, that's totally fine. Use Mount to mount apps or child routes:

routes = [
	Route('/', homepage),
	Mount('/app-prefix', app=AnotherASGIApp)
	Mount('/prefix', routes=[
		Route('/', view),
		Route('/another-one', view),
		Mount('/level-2', routes=[...]),
	])
]

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ni-aas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants