G
G
George2022-02-21 00:39:14
Python
George, 2022-02-21 00:39:14

How to display links from the admin panel to the site in Django?

Hello. How to do the following in Django:

- Place a section in the admin panel (for example: footer).
- Create a list in it (for example: navigation, social networks).
- Lists to do with the option to be active or off.
- And display the content in html singly if it is a description or email and output in a loop if it is a menu.

Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrei1penguin1, 2022-02-21
@Andrei1penguin1

<ul>
{% for x in y %}
  <li>something</li>
{% endfor %}
</ul>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question