Главная страница в админке

This commit is contained in:
zakhy 2025-03-08 16:01:40 +07:00
parent 569fe3d364
commit 9d51e84a9c
4 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,5 @@
def dashboard_callback(request, context):
context.update({
"test": "test"
})
return context

View File

@ -2,4 +2,5 @@ UNFOLD = {
"SITE_HEADER": "КиберКод",
"SITE_SUBHEADER": "Бот для фитнеса",
"SITE_URL": "/setwebhook",
"DASHBOARD_CALLBACK": "dashboard.callback.dashboard_callback"
}

View File

@ -0,0 +1,25 @@
{% extends 'unfold/layouts/base_simple.html' %}
{% load i18n %}
{% block breadcrumbs %}{% endblock %}
{% block title %}
{% if subtitle %}
{{ subtitle }} |
{% endif %}
{{ title }} | {{ site_title|default:_('Django site admin') }}
{% endblock %}
{% block branding %}
КиберКод
{% endblock %}
{% block content %}
<div class="grid grid-cols-2 gap-4">
<div class="bg-base-800 p-4">Блок 1</div>
<div class="bg-primary-500/80 p-4">Блок 2</div>
</div>
{% endblock %}