docker compose up and gitignore update

This commit is contained in:
Parsa Nazer
2025-01-27 21:28:42 +03:30
parent 0d32271b99
commit 862b73b071
6 changed files with 72 additions and 2 deletions
+30
View File
@@ -0,0 +1,30 @@
# Generated by Django 5.1.2 on 2025-01-27 17:20
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('product', '0004_productmodel_show_subcategorymodel_show'),
]
operations = [
migrations.CreateModel(
name='SliderModel',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=50)),
('image', models.ImageField(blank=True, null=True, upload_to='slider_image/')),
('video', models.FileField(blank=True, null=True, upload_to='slider_video/')),
('product', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='product.productmodel')),
],
options={
'verbose_name': 'اسلایدر',
'verbose_name_plural': 'اسلایدر ها',
},
),
]
View File