diff --git a/db.sqlite b/db.sqlite index 4156869..d7179d1 100644 Binary files a/db.sqlite and b/db.sqlite differ diff --git a/public/media/cache/44/6f/446fabdd126167484e6274928979441f.jpg b/public/media/cache/44/6f/446fabdd126167484e6274928979441f.jpg new file mode 100644 index 0000000..70e4a55 Binary files /dev/null and b/public/media/cache/44/6f/446fabdd126167484e6274928979441f.jpg differ diff --git a/public/media/cache/82/a5/82a59c528241c0b35b2406ea600274e0.jpg b/public/media/cache/82/a5/82a59c528241c0b35b2406ea600274e0.jpg new file mode 100644 index 0000000..1d06d58 Binary files /dev/null and b/public/media/cache/82/a5/82a59c528241c0b35b2406ea600274e0.jpg differ diff --git a/settings.py b/settings.py index cf71fce..2fabaa0 100644 --- a/settings.py +++ b/settings.py @@ -119,12 +119,17 @@ MEDIA_URL = '/media/' # PROJECT_DIR = os.path.abspath(os.path.dirname(__file__)) -# BASE_DIR = os.path.dirname(os.path.dirname(__file__)) -BASE_DIR = Path(__file__).resolve().parent.parent +BASE_DIR = os.path.dirname(os.path.dirname(__file__)) +# BASE_DIR = Path(__file__).resolve().parent.parent STATIC_URL = 'static/' -STATIC_ROOT = BASE_DIR / "staticfiles" +STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage' +TEMPLATE_DIRS = ( + os.path.join(BASE_DIR, 'templates'), + os.path.join(BASE_DIR, 'oscar'), + # Add to this list all the locations containing your static files +) # STATICFILES_DIRS = ( # location('static/'), # ) diff --git a/wsgi.py b/wsgi.py index b75a991..4963ce6 100644 --- a/wsgi.py +++ b/wsgi.py @@ -4,6 +4,7 @@ os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings") from django.core.wsgi import get_wsgi_application # isort:skip - +from whitenoise.django import DjangoWhiteNoise application = get_wsgi_application() +application = DjangoWhiteNoise(application)