Explorar o código

set MEDIA_ROOT

ignatz %!s(int64=4) %!d(string=hai) anos
pai
achega
880362bb67
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      st_cloud/settings.py

+ 1 - 0
st_cloud/settings.py

@@ -14,6 +14,7 @@ from pathlib import Path
 
 # Build paths inside the project like this: BASE_DIR / 'subdir'.
 BASE_DIR = Path(__file__).resolve().parent.parent
+MEDIA_ROOT = BASE_DIR / 'upload/'
 
 # Quick-start development settings - unsuitable for production
 # See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/