diff --git a/.continueignore b/.continueignore new file mode 100644 index 0000000..bfe537e --- /dev/null +++ b/.continueignore @@ -0,0 +1,6 @@ +venv/ +.venv/ +__pycache__/ +.git/ +*.pyc +node_modules/ \ No newline at end of file diff --git a/core/settings.py b/core/settings.py index 0a33ac0..0802319 100644 --- a/core/settings.py +++ b/core/settings.py @@ -55,7 +55,9 @@ ROOT_URLCONF = 'core.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [], + 'DIRS': [ + os.path.join(BASE_DIR, 'templates'), + ], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ diff --git a/core/urls.py b/core/urls.py index 3e9fe87..2abb81c 100644 --- a/core/urls.py +++ b/core/urls.py @@ -18,9 +18,12 @@ from django.conf import settings from django.contrib import admin from django.urls import path, include from django.conf.urls.static import static # <--- Добавьте эту строку +from . import views urlpatterns = [ path('admin/', admin.site.urls), + path('home/', views.home, name='home'), + path('about/', views.about, name='about'), path('', include('products.urls')), # Главная страница теперь ведет в products ] diff --git a/core/views.py b/core/views.py new file mode 100644 index 0000000..5881935 --- /dev/null +++ b/core/views.py @@ -0,0 +1,8 @@ +# core/views.py +from django.shortcuts import render + +def home(request): + return render(request, 'home.html') + +def about(request): + return render(request, 'about.html') \ No newline at end of file diff --git a/products/templates/products/list copy.html b/products/templates/products/list copy.html new file mode 100644 index 0000000..3b590ca --- /dev/null +++ b/products/templates/products/list copy.html @@ -0,0 +1,44 @@ + + +
+ +Этот билд был собран и развернут автоматически через Gitea Actions.
+ Время деплоя: 21.01.2026 + + ++ ENV_TYPE: {{ env_type }} +
+{{ product.description }}
+Цена: {{ product.price }} руб.
+ {% if product.image %} +Нет изображения
+ {% endif %} +Товаров пока нет.
+ {% endfor %} + + diff --git a/products/templates/products/list.html b/products/templates/products/list.html index 3b590ca..283c2bd 100644 --- a/products/templates/products/list.html +++ b/products/templates/products/list.html @@ -1,44 +1,29 @@ - - - - -Этот билд был собран и развернут автоматически через Gitea Actions.
- Время деплоя: 21.01.2026 + +{% extends 'base.html' %} - -- ENV_TYPE: {{ env_type }} -
-{{ product.description }}
-Цена: {{ product.price }} руб.
- {% if product.image %} -Нет изображения
- {% endif %} +{% block content %} +{{ product.description }}
+Цена: {{ product.price }} руб.
+Продуктов пока нет.
+Товаров пока нет.
- {% endfor %} - - +Это описание нашего проекта.
+Это главная страница нашего проекта.
+Здесь можно разместить основную информацию о проекте.
+