X-Git-Url: https://git.mdrn.pl/django-cas-provider.git/blobdiff_plain/6e6126a7402676610d76703bdb7c37dabddde1a8..fea0e7bc58a970ddb5894105616be97925b2b91c:/cas_provider_examples/simple/settings.py?ds=sidebyside diff --git a/cas_provider_examples/simple/settings.py b/cas_provider_examples/simple/settings.py index 209927c..2d4eda3 100644 --- a/cas_provider_examples/simple/settings.py +++ b/cas_provider_examples/simple/settings.py @@ -1,3 +1,7 @@ +from __future__ import unicode_literals + +from django import VERSION + # Django settings for xxx project. DEBUG = True @@ -104,10 +108,11 @@ import os PROJECT_PATH = os.path.abspath(os.path.dirname(__file__)) TEMPLATE_DIRS = ( - os.path.join(PROJECT_PATH, 'templates') + os.path.join(PROJECT_PATH, 'templates'), ) INSTALLED_APPS = ( + 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', @@ -115,9 +120,12 @@ INSTALLED_APPS = ( 'django.contrib.messages', 'django.contrib.staticfiles', 'cas_provider', - 'south', + 'simple', ) +if VERSION < (1, 7): + INSTALLED_APPS += ('south',) + # A sample logging configuration. The only tangible logging # performed by this configuration is to send an email to # the site admins on every HTTP 500 error.