forked from Yaxin/TP_API
1
0
Fork 0

6.15update

master
xfc 2 years ago
parent 6fe10d0805
commit 343bbdb923

2
.gitignore vendored

@ -22,3 +22,5 @@ pnpm-debug.log*
*.njsproj
*.sln
*.sw?
*.log
db.sqlite3

@ -161,7 +161,7 @@ REST_FRAMEWORK = {
}
# 配置日志
from logs.log_path import LOG_DIR
LOG_DIR = os.path.join(BASE_DIR, 'logs')
LOGGING = {
'version': 1, # 保留字
'disable_existing_loggers': False, # 是否禁用已经存在的日志实例

@ -1,33 +0,0 @@
# Generated by Django 3.2.19 on 2023-06-13 14:39
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='TP',
fields=[
('uid', models.AutoField(primary_key=True, serialize=False)),
('video_hash', models.CharField(max_length=50)),
('record_time', models.DateTimeField()),
('police_id', models.CharField(blank=True, max_length=50, null=True)),
('event_type', models.CharField(max_length=50)),
('is_violation', models.BooleanField()),
('small_image', models.CharField(max_length=100)),
('relative_time', models.FloatField()),
('video_dir', models.CharField(max_length=100)),
('car_number', models.CharField(max_length=50)),
('ai_analysis', models.CharField(max_length=255)),
('add_time', models.DateTimeField(auto_now_add=True)),
('update_time', models.DateTimeField(auto_now=True)),
('is_display', models.BooleanField(default=True)),
],
),
]

Binary file not shown.
Loading…
Cancel
Save