Browse Source

Add BASE_DIR to settings.py

Baptiste Jonglez 11 years ago
parent
commit
3524941ffb
1 changed files with 3 additions and 0 deletions
  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.
 
+# 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__))
 DEBUG = TEMPLATE_DEBUG = False