skip to Main Content

nginx unable to load media files – 404 (Not found) – Docker

I have tried everything to serve my media file but yet getting same 404 error. Please guide. My docker-compose file: version: "3.9" services: nginx: container_name: realestate_preprod_nginx_con build: ./nginx volumes: - static_volume:/home/inara/RealEstatePreProd/static - media_volume:/home/inara/RealEstatePreProd/media networks: glory1network: ipv4_address: 10.1.1.8 expose: - 8000…

VIEW QUESTION

Django Redis problem with Docker: InvalidCacheBackendError: No module named 'django.core.cache.backends.redis'

I want to use Redis through docker for the cache but got this error. django.core.cache.backends.base.InvalidCacheBackendError: Could not find backend 'django.core.cache.backends.redis.RedisCache': No module named 'django.core.cache.backends.redis' My cache settings are this. CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.redis.RedisCache', 'LOCATION': 'redis://127.0.0.1:6379', } }…

VIEW QUESTION

Django lookup by JSONField array value – Mysql

Let's say I have MySQL database records with this structure { "id": 44207, "actors": [ { "id": "9c88bd9c-f41b-59fa-bfb6-427b1755ea64", "name": "APT41", "scope": "confirmed" }, { "id": "6f82bd9c-f31b-59fa-bf26-427b1355ea64", "name": "APT67", "scope": "confirmed" } ], }, { "id": 44208, "actors": [ { "id":…

VIEW QUESTION
Back To Top
Search