X-Git-Url: https://git.mdrn.pl/django-cas-provider.git/blobdiff_plain/34efbf37f568d6db6523da7dde3a134c467ed89b..d53d0a307c10efb05ce0de82ab690c94c5deb5a4:/cas_provider_examples/simple/settings.py diff --git a/cas_provider_examples/simple/settings.py b/cas_provider_examples/simple/settings.py index 9140cf6..679863a 100644 --- a/cas_provider_examples/simple/settings.py +++ b/cas_provider_examples/simple/settings.py @@ -9,14 +9,12 @@ ADMINS = ( MANAGERS = ADMINS +import os + DATABASES = { 'default': { - 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. - 'NAME': '', # Or path to database file if using sqlite3. - 'USER': '', # Not used with sqlite3. - 'PASSWORD': '', # Not used with sqlite3. - 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. - 'PORT': '', # Set to empty string for default. Not used with sqlite3. + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': os.path.join(os.path.realpath(__file__), 'db'), } } @@ -106,10 +104,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', @@ -117,6 +116,7 @@ INSTALLED_APPS = ( 'django.contrib.messages', 'django.contrib.staticfiles', 'cas_provider', + 'simple', ) # A sample logging configuration. The only tangible logging