diff --git a/Offline_Developing/offline_developing_Django_App.sh b/Offline_Developing/offline_developing_Django_App.sh index bfcd830..92c00b3 100644 --- a/Offline_Developing/offline_developing_Django_App.sh +++ b/Offline_Developing/offline_developing_Django_App.sh @@ -1792,5 +1792,13 @@ django-admin compilemessages # ----------------------------------------------------------------------------------- # Image Product عکس محصولات +# 1: +python manage.py makemigrations +# Output: + # Migrations for 'products': + # products/migrations/0004_product_image.py + # - Add field image to product + + diff --git a/db.sqlite3 b/db.sqlite3 index abbd271..79913bd 100644 Binary files a/db.sqlite3 and b/db.sqlite3 differ diff --git a/products/migrations/0004_product_image.py b/products/migrations/0004_product_image.py new file mode 100644 index 0000000..1727a26 --- /dev/null +++ b/products/migrations/0004_product_image.py @@ -0,0 +1,18 @@ +# Generated by Django 5.0.7 on 2024-12-07 19:46 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('products', '0003_alter_comment_body_alter_comment_stars'), + ] + + operations = [ + migrations.AddField( + model_name='product', + name='image', + field=models.ImageField(blank=True, upload_to='product/product_image/', verbose_name='Product Image'), + ), + ]