We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e90ea8c commit b3c8428Copy full SHA for b3c8428
docker-compose-prod.yml
@@ -30,3 +30,8 @@ services:
30
31
volumes:
32
media:
33
+ driver: local
34
+ driver_opts:
35
+ type: none
36
+ o: bind
37
+ device: $MEDIA_ROOT
go_capture/settings.py
@@ -125,7 +125,7 @@
125
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
126
127
MEDIA_URL = "media/"
128
-MEDIA_ROOT = BASE_DIR / "media"
+MEDIA_ROOT = env.path("MEDIA_ROOT")
129
MEDIA_ROOT.mkdir(exist_ok=True)
130
131
IMAGES_DIR = MEDIA_ROOT / "images"
0 commit comments