I am trying to add features to the Django 1.2 home page .
I played with index.html, but functions added to this page affect all application pages.
Any ideas on which template should I use?
Thank!!!
You can use a template hierarchy, for example:
index.html
... {% block content%} ... {% block mycontent%} My custom text {% endblock%} ... {% endblock%}
app_index.html
... {% block mycontent%} {% endblock%} ..
, admin/index.html. admin/base_site.html ( , ).
admin/index.html
admin/base_site.html
django/contrib/admin/templates/admin Django.
django/contrib/admin/templates/admin
: , . . , , - , , HTML admin/index.html. , Django - - 1.0.
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#overriding-vs-replacing-an-admin-template admin/app_index.html
Source: https://habr.com/ru/post/1746845/More articles:Replacing an element with a specific attribute and its value - javascriptIs there any easy method to add type safety to identifier properties? - javaIs it possible to view javadoc for an implementation rather than an interface in IntelliJ IDEA? - javaintricate Java data structures - javaИсключение ASP.NET дает нерелевантную трассировку стека на YSOD, очень сложную задачу! - stack-traceURL равный и проверка доступа в Интернет - javaFinding duplicates of mySQL and then merging data - phpIs java / c / c ++ framework open source for pipe and filter paradigm? - javaSQL Server 2005 Date Difference - sql-server-2005Reliability Testing - javascriptAll Articles