Commit 71fe2b13 authored by Ilya Simonov's avatar Ilya Simonov

fix BASE_DIR

parent cddab8b3
......@@ -13,11 +13,14 @@ https://docs.djangoproject.com/en/3.0/ref/settings/
import os
import environ
from pathlib import Path
env = environ.Env(DEBUG=(bool, False))
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment