F
F
Flasher2015-06-11 15:08:59
Django
Flasher, 2015-06-11 15:08:59

How to combine multiple include for one page?

I want to combine several include for one page, something like that. How to do it right?

urlpatterns = [
    url(r'^$', include('about.urls', 'quote.urls')),
]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
marazmiki, 2015-06-11
@Flasher

For example, like this:

urlpatterns = [
    url(r'^', include('about.urls')),
    url(r'^', include('quote.urls')),
]

Please note that $ in regular expressions is not needed, it will only spoil everything.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question