B
B
Boldy2014-11-12 19:53:29
Django
Boldy, 2014-11-12 19:53:29

How to create a master page in django?

In INSTALLED_APPS connected

'django.contrib.flatpages',
    'django.contrib.sites',

everything works as it should, only in the admin panel it is necessary to specify the url to the page, and I need to create the main one. Tried to create with url '/', '//' - nothing. What to do?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anatoly Scherbakov, 2014-11-12
@Boldy

Seems like it /should work. How did you connect flatpages and did you follow all the instructions? https://docs.djangoproject.com/en/1.7/ref/contrib/...
You need to include their urlpatterns, probably at url '^'instead of '^pages/'.

D
Dmitry, 2014-11-25
@Zverushko123

'^$'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question