Merge pull request 'dev' (#16) from dev into main
Reviewed-on: http://git.hronos.su:8080/sabron/repcofkk/pulls/16
This commit is contained in:
commit
bfcf2ea77b
@ -20,9 +20,12 @@ docker-compose up -d
|
||||
docker compose exec web python manage.py createsuperuser
|
||||
```
|
||||
|
||||
4. Заполнить переменные в админке
|
||||
5. Перезапустить сервис `celery` и `gunicorn`
|
||||
4. Заполнить переменные в админке, либо использовать фикстуры
|
||||
```bash
|
||||
docker compose exec web python manage.py loaddata positions.json
|
||||
docker compose exec web python manage.py loaddata settings.json
|
||||
```
|
||||
6. При возникновении ошибок смотреть логи контейнеров
|
||||
```bash
|
||||
sudo docker compose logs
|
||||
```
|
||||
```
|
||||
|
||||
@ -1,92 +1,101 @@
|
||||
# Generated by Django 3.2.23 on 2024-05-30 09:30
|
||||
# Generated by Django 3.2.25 on 2024-08-29 13:13
|
||||
|
||||
import django.utils.timezone
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = []
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name="AccidentStop",
|
||||
name='AccidentStop',
|
||||
fields=[
|
||||
(
|
||||
"id",
|
||||
models.AutoField(
|
||||
auto_created=True,
|
||||
primary_key=True,
|
||||
serialize=False,
|
||||
verbose_name="ID",
|
||||
),
|
||||
),
|
||||
("time", models.DateTimeField(auto_now=True)),
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('time', models.DateTimeField(default=django.utils.timezone.now)),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Аварийная остановка',
|
||||
'verbose_name_plural': 'Аварийные остановки',
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name="FabricWorkTime",
|
||||
name='FabricWorkTime',
|
||||
fields=[
|
||||
(
|
||||
"id",
|
||||
models.AutoField(
|
||||
auto_created=True,
|
||||
primary_key=True,
|
||||
serialize=False,
|
||||
verbose_name="ID",
|
||||
),
|
||||
),
|
||||
("time", models.DateTimeField(auto_now=True)),
|
||||
(
|
||||
"status",
|
||||
models.CharField(
|
||||
choices=[
|
||||
("WO", "Работает под нагрузкой"),
|
||||
("WA", "Работает без нагрузки"),
|
||||
("NW", "Не работает"),
|
||||
],
|
||||
max_length=10,
|
||||
),
|
||||
),
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('time', models.DateTimeField(default=django.utils.timezone.now)),
|
||||
('status', models.CharField(choices=[('WO', 'Работает под нагрузкой'),
|
||||
('WA', 'Работает без нагрузки'), ('NW', 'Не работает')], max_length=10)),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Время работы фабрики',
|
||||
'verbose_name_plural': 'Отрезки времени работы фабрики',
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name="Position",
|
||||
name='Position',
|
||||
fields=[
|
||||
(
|
||||
"id",
|
||||
models.AutoField(
|
||||
auto_created=True,
|
||||
primary_key=True,
|
||||
serialize=False,
|
||||
verbose_name="ID",
|
||||
),
|
||||
),
|
||||
("title", models.CharField(max_length=100)),
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('title', models.CharField(blank=True, max_length=100)),
|
||||
('tag', models.CharField(blank=True, max_length=80)),
|
||||
('aver_smena_tag', models.CharField(blank=True, max_length=80)),
|
||||
('aver_pred_smena_tag', models.CharField(blank=True, max_length=80)),
|
||||
('smena_tag', models.CharField(blank=True, max_length=80)),
|
||||
('pred_smena_tag', models.CharField(blank=True, max_length=80)),
|
||||
('month_tag', models.CharField(blank=True, max_length=80)),
|
||||
('sutki_tag', models.CharField(blank=True, max_length=80)),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Позиция',
|
||||
'verbose_name_plural': 'Позиции',
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name="ScalesControl",
|
||||
name='ScalesControl',
|
||||
fields=[
|
||||
(
|
||||
"id",
|
||||
models.AutoField(
|
||||
auto_created=True,
|
||||
primary_key=True,
|
||||
serialize=False,
|
||||
verbose_name="ID",
|
||||
),
|
||||
),
|
||||
("time", models.DateTimeField(auto_now=True)),
|
||||
("value", models.PositiveIntegerField(default=0)),
|
||||
(
|
||||
"position",
|
||||
models.ForeignKey(
|
||||
on_delete=django.db.models.deletion.CASCADE, to="main.position"
|
||||
),
|
||||
),
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(blank=True, db_column='Name', max_length=150, null=True)),
|
||||
('value', models.DecimalField(blank=True, db_column='Values', decimal_places=6, max_digits=50, null=True)),
|
||||
('time', models.DateTimeField(blank=True, db_column='Date', null=True)),
|
||||
('check', models.BooleanField(db_column='Check', default=False)),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Показание весов',
|
||||
'verbose_name_plural': 'Показания весов',
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='ShiftReport',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('time', models.DateTimeField()),
|
||||
('concentrate', models.FloatField()),
|
||||
('dropout', models.FloatField()),
|
||||
('scales_data', models.JSONField()),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Отчет за смену',
|
||||
'verbose_name_plural': 'Отчет за смены',
|
||||
},
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name='shiftreport',
|
||||
index=models.Index(fields=['time'], name='main_shiftr_time_4e29ee_idx'),
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name='scalescontrol',
|
||||
index=models.Index(fields=['name'], name='main_scales_Name_655485_idx'),
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name='scalescontrol',
|
||||
index=models.Index(fields=['name', 'time'], name='main_scales_Name_9fd251_idx'),
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name='fabricworktime',
|
||||
index=models.Index(fields=['time'], name='main_fabric_time_314db2_idx'),
|
||||
),
|
||||
]
|
||||
|
||||
@ -1,54 +0,0 @@
|
||||
# Generated by Django 3.2.23 on 2024-05-30 10:46
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.utils.timezone
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("main", "0001_initial"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name="accidentstop",
|
||||
options={
|
||||
"verbose_name": "Аварийная остановка",
|
||||
"verbose_name_plural": "Аварийные остановки",
|
||||
},
|
||||
),
|
||||
migrations.AlterModelOptions(
|
||||
name="fabricworktime",
|
||||
options={
|
||||
"verbose_name": "Время работы фабрики",
|
||||
"verbose_name_plural": "Отрезки времени работы фабрики",
|
||||
},
|
||||
),
|
||||
migrations.AlterModelOptions(
|
||||
name="position",
|
||||
options={"verbose_name": "Позиция", "verbose_name_plural": "Позиции"},
|
||||
),
|
||||
migrations.AlterModelOptions(
|
||||
name="scalescontrol",
|
||||
options={
|
||||
"verbose_name": "Показание весов",
|
||||
"verbose_name_plural": "Показания весов",
|
||||
},
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="accidentstop",
|
||||
name="time",
|
||||
field=models.DateTimeField(default=django.utils.timezone.now),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="fabricworktime",
|
||||
name="time",
|
||||
field=models.DateTimeField(default=django.utils.timezone.now),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="scalescontrol",
|
||||
name="time",
|
||||
field=models.DateTimeField(default=django.utils.timezone.now),
|
||||
),
|
||||
]
|
||||
@ -1,73 +0,0 @@
|
||||
# Generated by Django 3.2.23 on 2024-06-05 09:08
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("main", "0002_auto_20240530_1046"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name="Scale",
|
||||
fields=[
|
||||
("id", models.BigAutoField(primary_key=True, serialize=False)),
|
||||
(
|
||||
"name",
|
||||
models.CharField(
|
||||
blank=True, db_column="Name", max_length=150, null=True
|
||||
),
|
||||
),
|
||||
(
|
||||
"values",
|
||||
models.CharField(
|
||||
blank=True, db_column="Values", max_length=150, null=True
|
||||
),
|
||||
),
|
||||
("date", models.DateTimeField(blank=True, db_column="Date", null=True)),
|
||||
("check", models.BooleanField(db_column="Check")),
|
||||
],
|
||||
options={
|
||||
"db_table": "vesi",
|
||||
"managed": False,
|
||||
},
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name="scalescontrol",
|
||||
name="position",
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name="scalescontrol",
|
||||
name="time",
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name="scalescontrol",
|
||||
name="value",
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="scalescontrol",
|
||||
name="check",
|
||||
field=models.BooleanField(db_column="Check", default=False),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="scalescontrol",
|
||||
name="date",
|
||||
field=models.DateTimeField(blank=True, db_column="Date", null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="scalescontrol",
|
||||
name="name",
|
||||
field=models.CharField(
|
||||
blank=True, db_column="Name", max_length=150, null=True
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="scalescontrol",
|
||||
name="values",
|
||||
field=models.CharField(
|
||||
blank=True, db_column="Values", max_length=150, null=True
|
||||
),
|
||||
),
|
||||
]
|
||||
@ -1,20 +0,0 @@
|
||||
# Generated by Django 3.2.23 on 2024-06-05 12:03
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("main", "0003_auto_20240605_0908"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="scalescontrol",
|
||||
name="name",
|
||||
field=models.CharField(
|
||||
blank=True, db_column="Name", max_length=150, null=True, unique=True
|
||||
),
|
||||
),
|
||||
]
|
||||
@ -1,33 +0,0 @@
|
||||
# Generated by Django 3.2.23 on 2024-06-05 14:26
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("main", "0004_alter_scalescontrol_name"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="scalescontrol",
|
||||
name="check",
|
||||
field=models.CharField(blank=True, max_length=255, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="scalescontrol",
|
||||
name="date",
|
||||
field=models.DateTimeField(auto_now_add=True, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="scalescontrol",
|
||||
name="name",
|
||||
field=models.CharField(blank=True, max_length=255, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="scalescontrol",
|
||||
name="values",
|
||||
field=models.CharField(blank=True, max_length=255, null=True),
|
||||
),
|
||||
]
|
||||
@ -1,37 +0,0 @@
|
||||
# Generated by Django 3.2.23 on 2024-06-05 14:28
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("main", "0005_auto_20240605_1426"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="scalescontrol",
|
||||
name="check",
|
||||
field=models.BooleanField(db_column="Check", default=False),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="scalescontrol",
|
||||
name="date",
|
||||
field=models.DateTimeField(blank=True, db_column="Date", null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="scalescontrol",
|
||||
name="name",
|
||||
field=models.CharField(
|
||||
blank=True, db_column="Name", max_length=150, null=True, unique=True
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="scalescontrol",
|
||||
name="values",
|
||||
field=models.CharField(
|
||||
blank=True, db_column="Values", max_length=150, null=True
|
||||
),
|
||||
),
|
||||
]
|
||||
@ -1,20 +0,0 @@
|
||||
# Generated by Django 3.2.23 on 2024-06-05 16:18
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("main", "0006_auto_20240605_1428"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="scalescontrol",
|
||||
name="name",
|
||||
field=models.CharField(
|
||||
blank=True, db_column="Name", max_length=150, null=True
|
||||
),
|
||||
),
|
||||
]
|
||||
@ -1,26 +0,0 @@
|
||||
# Generated by Django 3.2.23 on 2024-06-06 10:21
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("main", "0007_alter_scalescontrol_name"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.DeleteModel(
|
||||
name="Scale",
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="position",
|
||||
name="tag",
|
||||
field=models.CharField(blank=True, max_length=128),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="position",
|
||||
name="title",
|
||||
field=models.CharField(blank=True, max_length=100),
|
||||
),
|
||||
]
|
||||
@ -1,24 +0,0 @@
|
||||
# Generated by Django 3.2.23 on 2024-06-10 02:47
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("main", "0008_auto_20240606_1721"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="scalescontrol",
|
||||
name="values",
|
||||
field=models.DecimalField(
|
||||
blank=True,
|
||||
db_column="Values",
|
||||
decimal_places=6,
|
||||
max_digits=50,
|
||||
null=True,
|
||||
),
|
||||
),
|
||||
]
|
||||
@ -1,18 +0,0 @@
|
||||
# Generated by Django 3.2.23 on 2024-06-10 04:45
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("main", "0009_alter_scalescontrol_values"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RenameField(
|
||||
model_name="scalescontrol",
|
||||
old_name="values",
|
||||
new_name="value",
|
||||
),
|
||||
]
|
||||
@ -1,38 +0,0 @@
|
||||
# Generated by Django 3.2.23 on 2024-06-11 03:35
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("main", "0010_rename_values_scalescontrol_value"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name="position",
|
||||
name="aver_pred_smena_tag",
|
||||
field=models.CharField(blank=True, max_length=50),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="position",
|
||||
name="aver_smena",
|
||||
field=models.CharField(blank=True, max_length=50),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="position",
|
||||
name="month_tag",
|
||||
field=models.CharField(blank=True, max_length=50),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="position",
|
||||
name="pred_smena_tag",
|
||||
field=models.CharField(blank=True, max_length=50),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="position",
|
||||
name="smena_tag",
|
||||
field=models.CharField(blank=True, max_length=50),
|
||||
),
|
||||
]
|
||||
@ -1,47 +0,0 @@
|
||||
# Generated by Django 3.2.23 on 2024-06-11 03:38
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("main", "0011_auto_20240611_1035"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name="position",
|
||||
name="tag",
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="position",
|
||||
name="sutki",
|
||||
field=models.CharField(blank=True, max_length=80),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="position",
|
||||
name="aver_pred_smena_tag",
|
||||
field=models.CharField(blank=True, max_length=80),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="position",
|
||||
name="aver_smena",
|
||||
field=models.CharField(blank=True, max_length=80),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="position",
|
||||
name="month_tag",
|
||||
field=models.CharField(blank=True, max_length=80),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="position",
|
||||
name="pred_smena_tag",
|
||||
field=models.CharField(blank=True, max_length=80),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="position",
|
||||
name="smena_tag",
|
||||
field=models.CharField(blank=True, max_length=80),
|
||||
),
|
||||
]
|
||||
@ -1,18 +0,0 @@
|
||||
# Generated by Django 3.2.23 on 2024-06-11 04:13
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("main", "0012_auto_20240611_1038"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name="position",
|
||||
name="tag",
|
||||
field=models.CharField(blank=True, max_length=80),
|
||||
),
|
||||
]
|
||||
@ -1,23 +0,0 @@
|
||||
# Generated by Django 3.2.23 on 2024-06-11 04:23
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("main", "0013_position_tag"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RenameField(
|
||||
model_name="position",
|
||||
old_name="aver_smena",
|
||||
new_name="aver_smena_tag",
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name="position",
|
||||
old_name="sutki",
|
||||
new_name="sutki_tag",
|
||||
),
|
||||
]
|
||||
@ -1,19 +0,0 @@
|
||||
# Generated by Django 3.2.23 on 2024-06-17 02:07
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("main", "0014_auto_20240611_1123"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddIndex(
|
||||
model_name="scalescontrol",
|
||||
index=models.Index(
|
||||
fields=["name", "value"], name="main_scales_Name_d49b74_idx"
|
||||
),
|
||||
),
|
||||
]
|
||||
@ -1,18 +0,0 @@
|
||||
# Generated by Django 3.2.23 on 2024-07-22 10:29
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("main", "0015_scalescontrol_main_scales_name_d49b74_idx"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RenameField(
|
||||
model_name="scalescontrol",
|
||||
old_name="date",
|
||||
new_name="time",
|
||||
),
|
||||
]
|
||||
@ -1,31 +0,0 @@
|
||||
# Generated by Django 3.2.25 on 2024-08-14 10:55
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("main", "0016_rename_date_scalescontrol_time"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveIndex(
|
||||
model_name="scalescontrol",
|
||||
name="main_scales_Name_d49b74_idx",
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name="fabricworktime",
|
||||
index=models.Index(fields=["time"], name="main_fabric_time_314db2_idx"),
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name="scalescontrol",
|
||||
index=models.Index(fields=["name"], name="main_scales_Name_655485_idx"),
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name="scalescontrol",
|
||||
index=models.Index(
|
||||
fields=["name", "time"], name="main_scales_Name_9fd251_idx"
|
||||
),
|
||||
),
|
||||
]
|
||||
@ -1,27 +0,0 @@
|
||||
# Generated by Django 3.2.25 on 2024-08-21 17:22
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('main', '0017_auto_20240814_1055'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='ShiftReport',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('time', models.DateTimeField()),
|
||||
('concentrate', models.FloatField()),
|
||||
('dropout', models.FloatField()),
|
||||
('scales_data', models.JSONField()),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Отчет за смену',
|
||||
'verbose_name_plural': 'Отчет за смены',
|
||||
},
|
||||
),
|
||||
]
|
||||
@ -1,17 +0,0 @@
|
||||
# Generated by Django 3.2.25 on 2024-08-21 17:23
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('main', '0018_shiftreport'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddIndex(
|
||||
model_name='shiftreport',
|
||||
index=models.Index(fields=['time'], name='main_shiftr_time_4e29ee_idx'),
|
||||
),
|
||||
]
|
||||
@ -4,7 +4,7 @@ from apps.main.models.scales_control import Position
|
||||
from apps.main.services.scales_control.redis_repository import RedisRepository
|
||||
from apps.util.base_view import base_view
|
||||
from django.http import JsonResponse
|
||||
from sabron.util.sabronmodule import get_settings
|
||||
from sabron.util.sabronmodule import get_settings, set_settings
|
||||
|
||||
|
||||
@base_view
|
||||
@ -52,3 +52,16 @@ def get_kek_and_breed(request):
|
||||
fabric_goal = get_settings('fabric_goal')
|
||||
service = RedisRepository(control_conveyor_month, fabric_goal)
|
||||
return JsonResponse(service.get_kek_and_breed_values())
|
||||
|
||||
|
||||
@base_view
|
||||
def fabric_goal(request):
|
||||
if request.method == 'GET':
|
||||
goal = get_settings('fabric_goal')
|
||||
return JsonResponse({'goal': goal, 'success': True})
|
||||
elif request.method == 'PUT':
|
||||
value = json.loads(request.body)['goal']
|
||||
set_settings('fabric_goal', value)
|
||||
return JsonResponse({'success': True, 'message': 'Данные приняты'})
|
||||
else:
|
||||
return JsonResponse({'message': 'wrong method', 'success': False})
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
from apps.main.services.accident_stops.views import get_accident_stops
|
||||
from apps.main.services.density_sensors.views import get_sensors_list
|
||||
from apps.main.services.scales_control.views import (
|
||||
fabric_goal,
|
||||
get_kek_and_breed,
|
||||
get_positions,
|
||||
get_scales_data,
|
||||
@ -24,9 +25,13 @@ urlpatterns = [
|
||||
),
|
||||
path('worktime/create/', create_worktime, name='create_worktime'),
|
||||
path('status/', get_current_status, name='current_status'),
|
||||
|
||||
path('positions/', get_positions, name='get_positions'),
|
||||
|
||||
path('density_sensors/', get_sensors_list, name='get_sensors_list'),
|
||||
|
||||
path('scales/', get_scales_data, name='scales'),
|
||||
path('scales/kek_and_breed/recieve', set_kek_and_breed, name='receive_kek_and_breed'),
|
||||
path('scales/kek_and_breed', get_kek_and_breed, name='get_kek_and_breed')
|
||||
path('scales/kek_and_breed/recieve/', set_kek_and_breed, name='receive_kek_and_breed'),
|
||||
path('scales/kek_and_breed/', get_kek_and_breed, name='get_kek_and_breed'),
|
||||
path('scales/fabric_goal/', fabric_goal, name='fabric_goal')
|
||||
]
|
||||
|
||||
@ -2,7 +2,6 @@ from datetime import datetime, timedelta
|
||||
|
||||
from apps.main.models.worktime import FabricWorkTime
|
||||
from apps.main.services.base_service import DashboardBaseService
|
||||
from dateutil.relativedelta import relativedelta
|
||||
|
||||
|
||||
class FabricWorkTimeService(DashboardBaseService):
|
||||
@ -37,28 +36,38 @@ class FabricWorkTimeService(DashboardBaseService):
|
||||
|
||||
return status_durations_hours
|
||||
|
||||
@classmethod
|
||||
def calculate_by_last_value(cls, last_value: FabricWorkTime, start, end) -> dict:
|
||||
# TODO доделать
|
||||
# delta = end - last_value.time
|
||||
# res = start - delta
|
||||
pass
|
||||
def add_time_from_last_value(self, worktime_values: dict, start_period: datetime, diff: timedelta) -> dict:
|
||||
|
||||
try:
|
||||
last_value = FabricWorkTime.objects.filter(time__lte=start_period,
|
||||
time__gte=start_period - timedelta(hours=168)).last()
|
||||
if last_value is None:
|
||||
return worktime_values
|
||||
worktime_values[last_value.status] += diff
|
||||
except FabricWorkTime.DoesNotExist:
|
||||
pass
|
||||
return worktime_values
|
||||
|
||||
def return_worktime(self, return_durations: bool = False):
|
||||
# TODO обработки на то, что qs пуст; на то, что последний статус был давно
|
||||
now_date = self.get_current_time()
|
||||
start_month = now_date - relativedelta(hours=730)
|
||||
start_week = now_date - relativedelta(hours=168)
|
||||
start_month = now_date - timedelta(hours=730, minutes=1)
|
||||
start_week = now_date - timedelta(hours=168, minutes=1)
|
||||
start_shift = self.get_shift_start(now_date)
|
||||
|
||||
monthly_qs = self.get_qs_by_range(start_month, now_date)
|
||||
monthly = self.calculate_work_time(list(monthly_qs), return_durations)
|
||||
diff_monthly = self.check_worktime_validity(monthly, start_month, now_date)
|
||||
monthly = self.add_time_from_last_value(monthly, start_month, diff_monthly)
|
||||
|
||||
weekly_qs = self.get_qs_by_range(start_week, now_date)
|
||||
weekly = self.calculate_work_time(list(weekly_qs), return_durations)
|
||||
diff_weekly = self.check_worktime_validity(weekly, start_week, now_date)
|
||||
weekly = self.add_time_from_last_value(weekly, start_week, diff_weekly)
|
||||
|
||||
shift_qs = self.get_qs_by_range(start_shift, now_date)
|
||||
daily = self.calculate_work_time(list(shift_qs), return_durations)
|
||||
diff_daily = self.check_worktime_validity(daily, start_shift, now_date)
|
||||
daily = self.add_time_from_last_value(daily, start_shift, diff_daily)
|
||||
|
||||
return {
|
||||
'monthly': monthly,
|
||||
|
||||
@ -2,7 +2,8 @@ from apps.main.models.worktime import FabricWorkTime
|
||||
from apps.main.services.worktime.create_worktime_data import create_worktime_data
|
||||
from apps.main.services.worktime.service import FabricWorkTimeService
|
||||
from apps.util.base_view import base_view
|
||||
from django.http import JsonResponse
|
||||
from django.http import HttpResponse, JsonResponse
|
||||
from django.shortcuts import redirect
|
||||
|
||||
|
||||
@base_view
|
||||
@ -19,5 +20,7 @@ def factory_work_time_durations(request):
|
||||
|
||||
@base_view
|
||||
def create_worktime(request):
|
||||
res = create_worktime_data()
|
||||
return JsonResponse({'success': bool(res)}, safe=False)
|
||||
if request.user.is_superuser:
|
||||
create_worktime_data()
|
||||
return redirect('administration')
|
||||
return HttpResponse(status=403)
|
||||
|
||||
@ -228,4 +228,4 @@ def create_shift_report():
|
||||
dropout=concentrate['dropout'],
|
||||
scales_data=scales_data)
|
||||
service.delete_kek_and_breed_values()
|
||||
return obj
|
||||
return str(obj)
|
||||
|
||||
145
app/apps/main/templates/administration.html
Normal file
145
app/apps/main/templates/administration.html
Normal file
@ -0,0 +1,145 @@
|
||||
{% extends 'default.html' %}
|
||||
|
||||
{% block content %}
|
||||
<div class="row m-2">
|
||||
<div class="col-lg-4 col-sm-12">
|
||||
<div class="m-portlet m-portlet--mobile m-portlet--body-progress-">
|
||||
<div class="m-portlet__head">
|
||||
<div class="m-portlet__head-caption">
|
||||
<div class="m-portlet__head-title">
|
||||
<h3 class="m-portlet__head-text">
|
||||
Основное
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="m-portlet__body">
|
||||
<div class="d-flex justify-content-between">
|
||||
<a href="/admin" class="btn btn-primary roboto">Панель администрирования</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-4 col-sm-12">
|
||||
<div class="m-portlet m-portlet--mobile m-portlet--body-progress-">
|
||||
<div class="m-portlet__head">
|
||||
<div class="m-portlet__head-caption">
|
||||
<div class="m-portlet__head-title">
|
||||
<h3 class="m-portlet__head-text">
|
||||
Время работы фабрики
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="m-portlet__body">
|
||||
<div class="d-flex justify-content-between">
|
||||
<a href="{% url "create_worktime" %}" class="btn btn-outline-primary roboto">Загрузить время
|
||||
работы
|
||||
фабрики</a>
|
||||
<a href="#" class="btn btn-danger roboto">Очистить время работы</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4 col-sm-12">
|
||||
<div class="m-portlet m-portlet--mobile m-portlet--body-progress-">
|
||||
<div class="m-portlet__head">
|
||||
<div class="m-portlet__head-caption">
|
||||
<div class="m-portlet__head-title">
|
||||
<h3 class="m-portlet__head-text">
|
||||
Весы
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="m-portlet__body">
|
||||
<div class="d-flex flex-column ">
|
||||
|
||||
<div>
|
||||
<button type="button" class="btn btn-primary roboto mb-4" data-toggle="modal"
|
||||
data-target="#fabricGoalModal" id="launchModalBtn">Изменить значение цели по
|
||||
переработке
|
||||
</button>
|
||||
</div>
|
||||
<div><a href="#" class="btn btn-outline-danger roboto mb-2">Очистить значение кека и породы</a>
|
||||
</div>
|
||||
<div><a href="#" class="btn btn-danger roboto mb-2">Очистить данные весов</a></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="fabricGoalModal" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
|
||||
aria-hidden="true" style="display: none;">
|
||||
<div class="modal-dialog" role="document">
|
||||
<form class="modal-content" id="dropoutAndConcentrateForm">
|
||||
{% csrf_token %}
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="ModalLabel">Изменение значение цели по переработке</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div id="goalModalAlerts"></div>
|
||||
<div class="m-portlet__body">
|
||||
<div class="form-group m-form__group">
|
||||
<label for="goalInput">Цель по переработке (тонн)</label>
|
||||
<input type="number" class="form-control m-input m-input--square" id="goalInput"
|
||||
placeholder="Введите значение в тоннах">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary roboto" data-dismiss="modal">Закрыть</button>
|
||||
<button type="button" class="btn btn-primary roboto" id="submitBtn">Отправить</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block script_footer %}
|
||||
<script>
|
||||
const input = document.querySelector("#goalInput")
|
||||
const submitBtn = document.querySelector("#submitBtn")
|
||||
const goalModalAlerts = document.querySelector('#goalModalAlerts')
|
||||
|
||||
document.addEventListener('DOMContentLoaded', async () => {
|
||||
const goal = await fetch('/main/scales/fabric_goal/').then(response => response.json())
|
||||
input.value = goal.goal
|
||||
})
|
||||
submitBtn.addEventListener('click', async () => {
|
||||
const data = {goal: input.value}
|
||||
const response = await fetch('/main/scales/fabric_goal/', {
|
||||
method: 'PUT',
|
||||
headers: {
|
||||
'Content-Type': 'application/json;charset=utf-8',
|
||||
'X-CSRFToken': window.getCookie('csrftoken')
|
||||
},
|
||||
body: JSON.stringify(data)
|
||||
})
|
||||
|
||||
const responseJson = await response.json()
|
||||
|
||||
const alert = document.createElement('div')
|
||||
alert.classList.add('alert', 'roboto', 'bold')
|
||||
alert.setAttribute('role', 'alert')
|
||||
alert.textContent = `${responseJson.message}`
|
||||
goalModalAlerts.appendChild(alert)
|
||||
|
||||
if (responseJson.success) {
|
||||
alert.classList.add('alert-success')
|
||||
// Спрятать модальное окно
|
||||
// document.getElementById('fabricGoalModal').classList.remove('show')
|
||||
document.querySelectorAll('.modal-backdrop').forEach(el => el.remove())
|
||||
} else {
|
||||
// Отобразить ошибку
|
||||
alert.classList.add('alert-danger')
|
||||
}
|
||||
})
|
||||
</script>
|
||||
{% endblock %}
|
||||
@ -1,4 +1,4 @@
|
||||
<div class="col-md-8 col-sm-12">
|
||||
<div class="col-md-12 col-lg-8">
|
||||
<div class="m-portlet m-portlet--full-height">
|
||||
<div class="m-portlet__head justify-content-center">
|
||||
<div class="m-portlet__head-caption">
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
<div class="col-12">
|
||||
<div class="m-portlet m-portlet--full-height w-100 mb-1_4">
|
||||
<div class="m-portlet__head row">
|
||||
<div class="col-sm-12 col-md-4">
|
||||
<div class="m-portlet__head row" style="height: auto;">
|
||||
<div class="col-sm-12 col-md-6 col-lg-4">
|
||||
<div id="GoalProgress"></div>
|
||||
</div>
|
||||
<div class="col-sm-12 col-md-4">
|
||||
<div class="col-sm-12 col-md-6 col-lg-4">
|
||||
<div id="DropoutAndConcentrate"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
from apps.main import views_main
|
||||
from apps.main.views_main import aspiration, scales
|
||||
from apps.main.views_main import administration, aspiration, scales
|
||||
from django.urls import include, path
|
||||
|
||||
urlpatterns = [
|
||||
@ -8,5 +8,7 @@ urlpatterns = [
|
||||
path('scada/ajax/', views_main.get_ajax, name='get_ajax'),
|
||||
path('', include('apps.main.services.urls')),
|
||||
path('scale/', scales, name='concentrate_and_dropout'),
|
||||
path('aspiration/', aspiration, name='aspiration')
|
||||
path('aspiration/', aspiration, name='aspiration'),
|
||||
|
||||
path('administration/', administration, name='administration')
|
||||
]
|
||||
|
||||
@ -4,7 +4,7 @@ import traceback
|
||||
import requests
|
||||
from apps.util import generalmodule
|
||||
from django.contrib.auth.decorators import login_required
|
||||
from django.shortcuts import render
|
||||
from django.shortcuts import redirect, render
|
||||
from django.views.decorators.cache import never_cache
|
||||
from sabron.util import logging
|
||||
|
||||
@ -59,3 +59,11 @@ def scales(request):
|
||||
@never_cache
|
||||
def aspiration(request):
|
||||
return render(request, 'aspiration.html')
|
||||
|
||||
|
||||
@login_required(login_url='/accounts/login/?next=')
|
||||
@never_cache
|
||||
def administration(request):
|
||||
if not request.user.is_superuser or not request.user.is_staff:
|
||||
return redirect('mainindex')
|
||||
return render(request, 'administration.html')
|
||||
|
||||
@ -218,6 +218,11 @@ body {
|
||||
padding-top: 0.7rem;
|
||||
padding-bottom: 0.7rem;
|
||||
}
|
||||
|
||||
.aspiration_img {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.m-card-user.m-card-user--skin-dark .m-card-user__details .m-card-user__name {
|
||||
color: #29292b;
|
||||
}
|
||||
|
||||
@ -138,7 +138,7 @@
|
||||
tooltip: {
|
||||
y: {
|
||||
formatter: function (val) {
|
||||
return val + ' тонн в час'
|
||||
return val + ' т/ч'
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -186,6 +186,13 @@
|
||||
},
|
||||
title: {
|
||||
text: 'тонн за сутки'
|
||||
},
|
||||
tooltip: {
|
||||
y: {
|
||||
formatter: function (val) {
|
||||
return val + ' т.'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -247,7 +254,7 @@
|
||||
tooltip: {
|
||||
y: {
|
||||
formatter: function (val) {
|
||||
return val + ' тонн'
|
||||
return val + ' т.'
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -355,6 +362,11 @@
|
||||
}
|
||||
},
|
||||
tooltip: {
|
||||
y: {
|
||||
formatter: function (val) {
|
||||
return val + ' т.'
|
||||
}
|
||||
},
|
||||
enabled: true,
|
||||
shared: true,
|
||||
intersect: false
|
||||
@ -367,87 +379,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
// const optionsConcentrate = {
|
||||
// chart: {
|
||||
// height: 70,
|
||||
// width: '100%',
|
||||
// type: 'bar',
|
||||
// stacked: true,
|
||||
// sparkline: {
|
||||
// enabled: true
|
||||
// }
|
||||
// },
|
||||
// plotOptions: {
|
||||
// bar: {
|
||||
// horizontal: true,
|
||||
// barHeight: '40%',
|
||||
// colors: {
|
||||
// backgroundBarColors: ['#40475D']
|
||||
// }
|
||||
// },
|
||||
// },
|
||||
// dataLabels: {
|
||||
// enabled: true,
|
||||
// formatter: function (val, opts) {
|
||||
// return val + '%';
|
||||
// },
|
||||
// style: {
|
||||
// colors: ['#fff'],
|
||||
//
|
||||
// fontSize: '16px',
|
||||
//
|
||||
// fontWeight: 'bold'
|
||||
//
|
||||
// },
|
||||
// textAnchor: 'middle',
|
||||
// },
|
||||
// colors: colors,
|
||||
// stroke: {
|
||||
// width: 0,
|
||||
// },
|
||||
// series: [
|
||||
// {
|
||||
// name: 'Концентрат',
|
||||
// data: [
|
||||
// {
|
||||
// x: 'Концентрат %',
|
||||
// y: 56,
|
||||
// },
|
||||
// ]
|
||||
// },
|
||||
// ],
|
||||
// noData: 'Загрузка...',
|
||||
// title: {
|
||||
// floating: true,
|
||||
// offsetX: -10,
|
||||
// offsetY: 5,
|
||||
// text: 'Выход концентрата',
|
||||
// style: {
|
||||
// fontSize: '14px'
|
||||
// }
|
||||
// },
|
||||
// subtitle: {
|
||||
// floating: true,
|
||||
// align: 'right',
|
||||
// offsetY: 3,
|
||||
// text: '',
|
||||
// style: {
|
||||
// fontSize: '15px'
|
||||
// }
|
||||
// },
|
||||
// tooltip: {
|
||||
// enabled: true,
|
||||
// shared: true,
|
||||
// intersect: false
|
||||
// },
|
||||
// xaxis: {
|
||||
// categories: ['Выход концентрата'],
|
||||
// },
|
||||
// yaxis: {
|
||||
// max: 100
|
||||
// },
|
||||
// }
|
||||
|
||||
const optionsDoubleProgress = {
|
||||
chart: {
|
||||
height: 70,
|
||||
@ -526,7 +457,7 @@
|
||||
}
|
||||
},
|
||||
xaxis: {
|
||||
categories: ['Выход отсева и концентрата за месяц']
|
||||
categories: ['Выход отсева и концентрата за смену']
|
||||
},
|
||||
yaxis: {
|
||||
max: 100
|
||||
|
||||
@ -79,7 +79,15 @@
|
||||
return val + ": " + " 0 ч."
|
||||
}
|
||||
}
|
||||
}, noData: {
|
||||
},
|
||||
tooltip: {
|
||||
y: {
|
||||
formatter: function (val) {
|
||||
return val + ' ч.'
|
||||
}
|
||||
}
|
||||
},
|
||||
noData: {
|
||||
text: 'Загрузка...'
|
||||
}
|
||||
}
|
||||
|
||||
@ -7,8 +7,6 @@
|
||||
<title>{% settings_value 'SITE_TITLE_S' %} : {{ user }}</title>
|
||||
<meta name="description" content="Latest updates and statistic charts">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no">
|
||||
<link rel="stylesheet" type="text/css"
|
||||
href="{% static '/metronic/assets/vendors/custom/fullcalendar/fullcalendar.bundle.css' %}?ver={% settings_value 'APP_VERSION' %}">
|
||||
<link rel="stylesheet" type="text/css"
|
||||
href="{% static '/metronic/assets/vendors/base/vendors.bundle.css' %}?ver={% settings_value 'APP_VERSION' %}">
|
||||
|
||||
@ -185,13 +183,15 @@
|
||||
<ul class="m-nav m-nav--skin-light">
|
||||
<li class="m-nav__separator m-nav__separator--fit">
|
||||
</li>
|
||||
<li class="m-nav__item mb-2">
|
||||
<a href="/admin"
|
||||
class="btn m-btn--pill btn-secondary m-btn m-btn--custom m-btn--label-brand m-btn--bolder">Администрирование</a>
|
||||
</li>
|
||||
{% if request.user.is_superuser or request.user.is_staff %}
|
||||
<li class="m-nav__item mb-2">
|
||||
<a href="{% url 'administration' %}"
|
||||
class="btn m-btn--pill btn-secondary m-btn m-btn--custom m-btn--label-brand m-btn--bolder ">Администрирование</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
<li class="m-nav__item">
|
||||
<a href="/accounts/logout/?next=/accounts/login/"
|
||||
class="btn m-btn--pill btn-secondary m-btn m-btn--custom m-btn--label-brand m-btn--bolder">Выход</a>
|
||||
class="btn m-btn--pill btn-secondary m-btn m-btn--custom m-btn--label-brand m-btn--bolder ">Выход</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -255,8 +255,6 @@
|
||||
src="{% static '/metronic/assets/vendors/base/vendors.bundle.js' %}?ver={% settings_value 'APP_VERSION' %}"></script>
|
||||
<script type="text/javascript"
|
||||
src="{% static '/metronic/assets/demo/default/base/scripts.bundle.js' %}?ver={% settings_value 'APP_VERSION' %}"></script>
|
||||
<script type="text/javascript"
|
||||
src="{% static '/metronic/assets/vendors/custom/fullcalendar/fullcalendar.bundle.js' %}?ver={% settings_value 'APP_VERSION' %}"></script>
|
||||
<script type="text/javascript"
|
||||
src="{% static '/metronic/assets/app/js/dashboard.js' %}?ver={% settings_value 'APP_VERSION' %}"></script>
|
||||
<script src="{% static 'js/main.js' %}?ver={% settings_value 'APP_VERSION' %}"></script>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user