Skip to content

Commit b1e61d6

Browse files
committed
Media root dir: set absolute path
1 parent 0d3fb7e commit b1e61d6

File tree

1 file changed

+2
-1
lines changed
  • {{ cookiecutter.name }}/src/app/conf

1 file changed

+2
-1
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
from app.conf.boilerplate import BASE_DIR
12
from app.conf.environ import env
23

34

45
MEDIA_URL = "/media/"
5-
MEDIA_ROOT = env("MEDIA_ROOT", cast=str, default="media")
6+
MEDIA_ROOT = env.path("MEDIA_ROOT", default=BASE_DIR.parent / "media")

0 commit comments

Comments
 (0)