S
S
Sergey Nizhny Novgorod2016-05-28 01:55:15
Django
Sergey Nizhny Novgorod, 2016-05-28 01:55:15

What is Django flatpages for?

Hello.
I would like to ask you, what is Django flatpages used for? As I understand it, this thing allows you to somehow more conveniently give static pages, but I don’t understand why not just use:
A static html template and a view like:

def page(request):
    return render(request, 'faceset/pagehtml')

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2016-05-28
@Terras

This is a primitive CMS, so that the site user can change the text on the page through the admin panel, and would not resort to the help of a programmer to change templates.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question