Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Princekumarofficial committed Aug 20, 2024
1 parent d9e7372 commit d5c19cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion home/models/home.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from django.db import models
from django.utils.translation import gettext as _
from cloudinary_storage import Cl


class About(models.Model):
Expand All @@ -25,7 +26,7 @@ class Carousel(models.Model):
Stores All carousel images on Home page
"""

image = models.ImageField(_("Carousel Images"), upload_to="static/images")
image = models.ImageField(_("Carousel Images"), upload_to="static/images", storage=Cl)

def __str__(self):
return "Carousel Images"
Expand Down
3 changes: 3 additions & 0 deletions messWebsite/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@

STATIC_URL = "/static/"
STATIC_ROOT = BASE_DIR / 'staticfiles'
STATICFILES_DIRS = [
os.path.join(BASE_DIR, "static"),
]
# managing media
CLOUDINARY_STORAGE = {
"CLOUD_NAME": env("CLOUD_NAME"),
Expand Down

0 comments on commit d5c19cc

Please sign in to comment.