django-fobi/examples/simple/settings_override_select_model_object_plugin.py

17 lines
339 B
Python
Raw Normal View History

from nine.versions import DJANGO_GTE_1_7
from settings import *
INSTALLED_APPS = list(INSTALLED_APPS)
try:
INSTALLED_APPS.append('override_select_model_object_plugin')
except Exception as e:
pass
if DJANGO_GTE_1_7:
try:
INSTALLED_APPS.remove('south') if 'south' in INSTALLED_APPS else None
except:
pass