feat: добавить миграцию для моделей Category и Item, шаблон 404 страницы
All checks were successful
Build and Push Docker Image / build (push) Successful in 27s
All checks were successful
Build and Push Docker Image / build (push) Successful in 27s
- Создана миграция `0001_initial.py` для моделей `Category` и `Item` - Добавлен шаблон `404.html` с пользовательским стилем и макетом ошибки
This commit is contained in:
30
templates/404.html
Normal file
30
templates/404.html
Normal file
@@ -0,0 +1,30 @@
|
||||
{% extends "_layouts/base.html" %}
|
||||
{% load static %}
|
||||
|
||||
{% block title %}404{% endblock %}
|
||||
|
||||
{% block add_css %}
|
||||
<link rel="stylesheet" href="{% static "css/index.css" %}">
|
||||
<link rel="stylesheet" href="{% static 'css/error.css' %}">
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="full-page">
|
||||
{% include "_fragments/header.html" %}
|
||||
|
||||
<main class="container error-page">
|
||||
<h1 class="error-code">4 0 4</h1>
|
||||
<h2 class="error-subtitle">ОЙ, КАЖЕТСЯ ЗДЕСЬ НИЧЕГО НЕТ...</h2>
|
||||
<p class="error-description">
|
||||
Приносим свои извинения! Скорее всего вы попали <br>
|
||||
на несуществующую страницу, предлагаем вам вернутся в каталог.
|
||||
</p>
|
||||
<div class="error-actions">
|
||||
<a href="/catalog/" class="error-btn-1">ПЕРЕЙТИ В КАТАЛОГ</a>
|
||||
<a href="/" class="error-btn-2">НА ГЛАВНУЮ</a>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
{% include "_fragments/footer.html" %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user