N
N
Neyury2017-03-02 13:33:56
Django
Neyury, 2017-03-02 13:33:56

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/

Can you provide information about this? Or a way to organize such pages?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sim3x, 2017-03-02
@Neyury

https://docs.djangoproject.com/en/1.10/ref/contrib...
or your view

A
Alexey Sergeev, 2017-03-04
@SergeevAI

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 question

Ask a Question

731 491 924 answers to any question