From cafadff8f416b9119abf9b1f8b79b181ed1b037c Mon Sep 17 00:00:00 2001
From: Bach Dániel <bd@ik.bme.hu>
Date: Tue, 28 Oct 2014 15:24:47 +0100
Subject: [PATCH] circle: update settings

---
 circle/circle/settings/base.py  | 31 +++++++++++++++----------------
 circle/circle/settings/local.py |  2 +-
 2 files changed, 16 insertions(+), 17 deletions(-)

diff --git a/circle/circle/settings/base.py b/circle/circle/settings/base.py
index 3a11fef..7fa1d38 100644
--- a/circle/circle/settings/base.py
+++ b/circle/circle/settings/base.py
@@ -50,20 +50,20 @@ def get_env_variable(var_name, default=None):
 
 ########## PATH CONFIGURATION
 # Absolute filesystem path to the Django project directory:
-DJANGO_ROOT = dirname(dirname(abspath(__file__)))
+BASE_DIR = dirname(dirname(abspath(__file__)))
 
 # Absolute filesystem path to the top-level project folder:
-SITE_ROOT = dirname(DJANGO_ROOT)
+SITE_ROOT = dirname(BASE_DIR)
 
 # Site name:
-SITE_NAME = basename(DJANGO_ROOT)
+SITE_NAME = basename(BASE_DIR)
 
 # Url to site: (e.g. http://localhost:8080/)
 DJANGO_URL = get_env_variable('DJANGO_URL', '/')
 
 # Add our project to our pythonpath, this way we don't need to type our project
 # name in our dotted import paths:
-path.append(DJANGO_ROOT)
+path.append(BASE_DIR)
 ########## END PATH CONFIGURATION
 
 
@@ -78,14 +78,9 @@ TEMPLATE_DEBUG = DEBUG
 
 ########## MANAGER CONFIGURATION
 # See: https://docs.djangoproject.com/en/dev/ref/settings/#admins
-ADMINS = (
-    ('Root', 'root@localhost'),
-)
 
 EMAIL_SUBJECT_PREFIX = get_env_variable('DJANGO_SUBJECT_PREFIX', '[CIRCLE] ')
 
-# See: https://docs.djangoproject.com/en/dev/ref/settings/#managers
-MANAGERS = ADMINS
 ########## END MANAGER CONFIGURATION
 
 
@@ -283,12 +278,6 @@ TEMPLATE_CONTEXT_PROCESSORS = (
     'dashboard.context_processors.extract_settings',
 )
 
-# See: https://docs.djangoproject.com/en/dev/ref/settings/#template-loaders
-TEMPLATE_LOADERS = (
-    'django.template.loaders.filesystem.Loader',
-    'django.template.loaders.app_directories.Loader',
-)
-
 # See: https://docs.djangoproject.com/en/dev/ref/settings/#template-dirs
 TEMPLATE_DIRS = (
     normpath(join(SITE_ROOT, '../../site-circle/templates')),
@@ -337,7 +326,6 @@ DJANGO_APPS = (
 )
 
 THIRD_PARTY_APPS = (
-    'south',
     'django_tables2',
     'crispy_forms',
     'djcelery',
@@ -349,6 +337,11 @@ THIRD_PARTY_APPS = (
     'pipeline',
 )
 
+import django
+if django.get_version() < '1.7':
+    THIRD_PARTY_APPS += 'south',
+
+
 # Apps specific for this project go here.
 LOCAL_APPS = (
     'common',
@@ -533,8 +526,14 @@ LOCALE_PATHS = (join(SITE_ROOT, 'locale'), )
 COMPANY_NAME = "BME IK 2014"
 SOUTH_MIGRATION_MODULES = {
     'taggit': 'taggit.south_migrations',
+    'vm': 'vm.south_migrations',
+    'firewall': 'firewall.south_migrations',
+    'acl': 'acl.south_migrations',
+    'dashboard': 'dashboard.south_migrations',
+    'storage': 'storage.south_migrations',
 }
 
+
 graphite_host = environ.get("GRAPHITE_HOST", None)
 graphite_port = environ.get("GRAPHITE_PORT", None)
 if graphite_host and graphite_port:
diff --git a/circle/circle/settings/local.py b/circle/circle/settings/local.py
index dd82156..4eb8944 100644
--- a/circle/circle/settings/local.py
+++ b/circle/circle/settings/local.py
@@ -43,7 +43,7 @@ EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
 # DATABASES = {
 #     'default': {
 #         'ENGINE': 'django.db.backends.sqlite3',
-#         'NAME': normpath(join(DJANGO_ROOT, 'default.db')),
+#         'NAME': normpath(join(BASE_DIR, 'default.db')),
 #         'USER': '',
 #         'PASSWORD': '',
 #         'HOST': '',
--
libgit2 0.26.0