Skip to content

Commit

Permalink
Install Pillow package
Browse files Browse the repository at this point in the history
for Django Application
  • Loading branch information
sinalalebakhsh committed Dec 7, 2024
1 parent 7d43ee2 commit 8d5a492
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Offline_Developing/offline_developing_Django_App.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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




Binary file modified db.sqlite3
Binary file not shown.
18 changes: 18 additions & 0 deletions products/migrations/0004_product_image.py
Original file line number Diff line number Diff line change
@@ -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'),
),
]

0 comments on commit 8d5a492

Please sign in to comment.