diff --git a/src/1.py b/src/1.py
index 880a2dc6f..4df2cfea9 100644
Binary files a/src/1.py and b/src/1.py differ
diff --git a/src/add_base.sqlite3 b/src/add_base.sqlite3
new file mode 100644
index 000000000..18fe17c84
Binary files /dev/null and b/src/add_base.sqlite3 differ
diff --git a/src/front/src/layouts/default/DefaultPortal.vue b/src/front/src/layouts/default/DefaultPortal.vue
index fe5e82652..75922a3b6 100644
--- a/src/front/src/layouts/default/DefaultPortal.vue
+++ b/src/front/src/layouts/default/DefaultPortal.vue
@@ -427,6 +427,11 @@ export default {
name: 'Об инспекции',
ico: 'mdi-city',
path: "/inspection"
+ },
+ {
+ name: 'К празднику',
+ ico: 'mdi-cake-variant',
+ path: "/fnshol"
}
]
diff --git a/src/front/src/router/index.js b/src/front/src/router/index.js
index f84b0d190..5d76badbd 100644
--- a/src/front/src/router/index.js
+++ b/src/front/src/router/index.js
@@ -106,6 +106,15 @@ const routes = [
ico: "mdi-account"
}
},
+ {
+ path: '/fnshol',
+ name: 'FnsHol.vue',
+ component: () => import('@/views/FnsHol.vue'),
+ meta:{
+ title:"К празднику",
+ ico: "mdi-city"
+ }
+ },
],
},
]
diff --git a/src/front/src/views/FnsHol.vue b/src/front/src/views/FnsHol.vue
new file mode 100644
index 000000000..e7f59beac
--- /dev/null
+++ b/src/front/src/views/FnsHol.vue
@@ -0,0 +1,132 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ {{x.title}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/garbage/__init__.py b/src/garbage/__init__.py
new file mode 100644
index 000000000..e69de29bb
diff --git a/src/garbage/admin.py b/src/garbage/admin.py
new file mode 100644
index 000000000..8d23542d4
--- /dev/null
+++ b/src/garbage/admin.py
@@ -0,0 +1,35 @@
+from django.contrib import admin
+from .models import *
+# Register your models here.
+
+class MultiDBModelAdmin(admin.ModelAdmin):
+ # A handy constant for the name of the alternate database.
+ using = "add_base"
+
+ def save_model(self, request, obj, form, change):
+ # Tell Django to save objects to the 'other' database.
+ obj.save(using=self.using)
+
+ def delete_model(self, request, obj):
+ # Tell Django to delete objects from the 'other' database
+ obj.delete(using=self.using)
+
+ def get_queryset(self, request):
+ # Tell Django to look for objects on the 'other' database.
+ return super().get_queryset(request).using(self.using)
+
+ def formfield_for_foreignkey(self, db_field, request, **kwargs):
+ # Tell Django to populate ForeignKey widgets using a query
+ # on the 'other' database.
+ return super().formfield_for_foreignkey(
+ db_field, request, using=self.using, **kwargs
+ )
+
+ def formfield_for_manytomany(self, db_field, request, **kwargs):
+ # Tell Django to populate ManyToMany widgets using a query
+ # on the 'other' database.
+ return super().formfield_for_manytomany(
+ db_field, request, using=self.using, **kwargs
+ )
+
+# admin.site.register(Carousels, MultiDBModelAdmin)
\ No newline at end of file
diff --git a/src/garbage/apps.py b/src/garbage/apps.py
new file mode 100644
index 000000000..15a0d67ff
--- /dev/null
+++ b/src/garbage/apps.py
@@ -0,0 +1,6 @@
+from django.apps import AppConfig
+
+
+class GarbageConfig(AppConfig):
+ default_auto_field = 'django.db.models.BigAutoField'
+ name = 'garbage'
diff --git a/src/garbage/models.py b/src/garbage/models.py
new file mode 100644
index 000000000..695125315
--- /dev/null
+++ b/src/garbage/models.py
@@ -0,0 +1,18 @@
+# This is an auto-generated Django model module.
+# You'll have to do the following manually to clean this up:
+# * Rearrange models' order
+# * Make sure each model has one field with primary_key=True
+# * Make sure each ForeignKey and OneToOneField has `on_delete` set to the desired behavior
+# * Remove `managed = False` lines if you wish to allow Django to create, modify, and delete the table
+# Feel free to rename the models, but don't rename db_table values or field names.
+from django.db import models
+
+
+# class Carousels(models.Model):
+# title = models.CharField(max_length=255)
+# text = models.TextField(blank=True, null=True)
+# link = models.ImageField(upload_to='fns/%Y/%m/%d', null=True, verbose_name='Изображение', db_comment = 'Картинка к новости')
+
+# class Meta:
+# managed = False
+# db_table = 'carousels'
\ No newline at end of file
diff --git a/src/garbage/tests.py b/src/garbage/tests.py
new file mode 100644
index 000000000..7ce503c2d
--- /dev/null
+++ b/src/garbage/tests.py
@@ -0,0 +1,3 @@
+from django.test import TestCase
+
+# Create your tests here.
diff --git a/src/garbage/urls.py b/src/garbage/urls.py
new file mode 100644
index 000000000..b4f8a51d2
--- /dev/null
+++ b/src/garbage/urls.py
@@ -0,0 +1,16 @@
+from django.urls import include, path
+from rest_framework.routers import DefaultRouter
+
+from .views import *
+
+from rest_framework_simplejwt.views import (
+ TokenObtainPairView,
+ TokenRefreshView,TokenVerifyView
+)
+
+urlpatterns = [
+
+ # path('links/', CaorusAPIView.as_view(), name='LinkAPIView'),
+
+
+]
\ No newline at end of file
diff --git a/src/garbage/views.py b/src/garbage/views.py
new file mode 100644
index 000000000..a36fdaaa7
--- /dev/null
+++ b/src/garbage/views.py
@@ -0,0 +1,3 @@
+from django.shortcuts import render
+
+# class CaorusAPIView(CarouselsAPIView(ListAPIView):)
\ No newline at end of file
diff --git a/src/media/fns/2023/11/22/1579389383_1-1.jpg b/src/media/fns/2023/11/22/1579389383_1-1.jpg
new file mode 100644
index 000000000..f98110bec
Binary files /dev/null and b/src/media/fns/2023/11/22/1579389383_1-1.jpg differ
diff --git a/src/userauth.sqlite3 b/src/userauth.sqlite3
deleted file mode 100644
index 835a2a3ec..000000000
Binary files a/src/userauth.sqlite3 and /dev/null differ