From 8024fcc8f5b1b506fe0aafebb884016fc4df417d Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Wed, 7 Nov 2018 13:51:00 +0100 Subject: [PATCH] forgot base dir --- recipes/settings.py.template | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes/settings.py.template b/recipes/settings.py.template index aa71d7ba..c8ba4033 100644 --- a/recipes/settings.py.template +++ b/recipes/settings.py.template @@ -15,6 +15,8 @@ from django.contrib import messages from recipes.secret_settings import * from dotenv import load_dotenv +# Build paths inside the project like this: os.path.join(BASE_DIR, ...) +BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/2.0/howto/deployment/checklist/