Answer the question
In order to leave comments, you need to log in
Where can I find information about "single" pages in the django documentation?
I remember that when studying the django documentation (or some related articles), I came across information about the possibility of creating pages that are not associated with a specific application (Pages like "delivery", "return", etc.)
domain.ru/dostavka/
domain.ru/vozvrat/
domain.ru/information/
Answer the question
In order to leave comments, you need to log in
python.org do like this.
url(r'^humans.txt$', TemplateView.as_view(template_name='humans.txt', content_type='text/plain')),
url(r'^robots.txt$', TemplateView.as_view(template_name='robots.txt', content_type='text/plain')),
url(r'^shell/$', TemplateView.as_view(template_name="python/shell.html"), name='shell'),
# python section landing pages
url(r'^about/$', TemplateView.as_view(template_name="python/about.html"), name='about'),
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question