Create: views and templates

This commit is contained in:
2023-07-29 13:56:42 +09:00
parent 52a77a4b27
commit 96ae8647e1
9 changed files with 395 additions and 23 deletions

View File

@@ -1,6 +1,6 @@
# Generated by Django 4.2 on 2023-07-27 02:04
# Generated by Django 4.2 on 2023-07-28 14:40
import collector.models
import collector.utils
from django.conf import settings
import django.core.files.storage
from django.db import migrations, models
@@ -22,6 +22,7 @@ class Migration(migrations.Migration):
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=20)),
('pretty_name', models.CharField(max_length=20)),
],
),
migrations.CreateModel(
@@ -41,7 +42,8 @@ class Migration(migrations.Migration):
name='Archive',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('file', models.FileField(blank=True, null=True, storage=django.core.files.storage.FileSystemStorage(base_url='/archives/', location=pathlib.PurePosixPath('/home/stepan/Documents/Dev/ISPsystem/logs-collector/logs_collector/archives')), upload_to=collector.models.logs_dir_path)),
('file', models.FileField(blank=True, null=True, storage=django.core.files.storage.FileSystemStorage(base_url='/archives/', location=pathlib.PurePosixPath('/home/stepan/Documents/Dev/ISPsystem/logs-collector/logs_collector/archives')), upload_to=collector.utils.logs_dir_path)),
('size', models.CharField(blank=True, max_length=50)),
('sha1', models.CharField(editable=False, max_length=1024)),
('time_create', models.DateTimeField(auto_now_add=True)),
('time_update', models.DateTimeField(auto_now=True)),