From 8d5a492e392bb2f313129798a45236873aa7b3bb Mon Sep 17 00:00:00 2001 From: sina lalehbakhsh Date: Sat, 7 Dec 2024 14:47:02 -0500 Subject: [PATCH] Install Pillow package for Django Application --- .../offline_developing_Django_App.sh | 8 ++++++++ db.sqlite3 | Bin 188416 -> 188416 bytes products/migrations/0004_product_image.py | 18 ++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 products/migrations/0004_product_image.py 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 abbd27114b7d89852adc89867ddb66e8406467c6..79913bdd01037d99291cc457b9380970ebbf2366 100644 GIT binary patch delta 484 zcmajbJ#L#&003Z~98V-AYP+>Vq&7-A5b>S?|7;|h-T_xX4?epu5lNNT zV6{fmHHO+^QI&@5`GcE3xB%Di8IdykPzK^wfEc2-`of(IjoN&6M zQ<7PdNTt^gxY?lOx0K<&CmgPlI~ZiG(JrFPT4OMY;oQ$k&8{m%qo@*Y z5B8>}?lVKa*Pf1%GA;3bm@xHjax5MS3PmET*%drq?(9_R4K-}0jpk8X@24Hkm`Ush zmG`(~yQel{mbcUzj3vs^YFWz^w)ck;SGOHXB#jZB1d$deR+Z_B8~#U|k!UM1_5{_M zAPUhWL?nWLUD8jL`Q|nF{hYusY>DtN;+DvXuY{Mc-hm47bcub&eBXk}Zwx*h!r@iQ_shQiv~!V>@x;p0qYg zgDRLQ3opRRz=DS^d4WCvDns9Zy$hF_f&G*I;a{zZ)tdP52*12|T*WWHzJ4D)1QcD^ zfm|6dWytN(EW@zy{5HyOBb?|G#0tB2y|ugbg;?d=YkW?eoj>2atG+v`Ozi+olH;L$ z?6M~)7$q6ZTzk&LvAaM_6zqBR)Cfgs=?fLL;|(Uwp3+jQk`G7yq0v8dQe_egVp{J> z$3BOcFpGyxYc%6Dhz9!rC4Q|aht7%FnQ4IUcq|o+8%phLY1;i_$u{M%E=?Mv`HXAv zZtApaY$+{J-XGQOO8f!46f6-{fZK;CjA^$&g<#@`74vkav8GY1xokE(1X)VAg42d4 z4PwMM6HaKHjMbnSYK2*=5<*>`k7gESykVG*K$!`{pHUE)MkVldDP=@Z&y2w8CX0RD zYxRJgbh^{~EtD{8`ycB^FHkZ}ZJMgqa#sc1$26T~vGzHlm z8kQknhG3853neChafN@sPm)t?gOoAy2bq%}NjcxX!Fh7`=^YjS-@{D|!=7EdeX{Wv ae}Y%|PX6sDeoa33C&g~&pMT-6Zhiy8vBeqy 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'), + ), + ]