Parcourir la source

Add BASE_DIR to settings.py

Baptiste Jonglez il y a 11 ans
Parent
commit
3524941ffb
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      coin/settings.py

+ 3 - 0
coin/settings.py

@@ -6,6 +6,9 @@ from django_auth_ldap.config import LDAPSearch, PosixGroupType
 
 
 # Django settings for coin project.
 # Django settings for coin project.
 
 
+# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
+BASE_DIR = os.path.dirname(os.path.dirname(__file__))
+
 PROJECT_PATH = os.path.abspath(os.path.dirname(__file__))
 PROJECT_PATH = os.path.abspath(os.path.dirname(__file__))
 DEBUG = TEMPLATE_DEBUG = False
 DEBUG = TEMPLATE_DEBUG = False