X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=settings.py;h=e3d71db4908a11fab561fe86c579b3efd5f228de;hb=9e5aa45049a4f28686dd94f33a2ef138c8600bb8;hp=f3c0af5f0c210a6f24c96f155f7497cdd226ebaa;hpb=fc78a05df13a64c7bcc7a72c54a89ec1920f0308;p=matthijs%2Fprojects%2Fdorestad-bookings.git diff --git a/settings.py b/settings.py index f3c0af5..e3d71db 100644 --- a/settings.py +++ b/settings.py @@ -1,5 +1,9 @@ # Django settings for dorestad1493 project. +import os + +PROJECT_DIR = os.path.dirname(__file__) + DEBUG = True TEMPLATE_DEBUG = DEBUG @@ -9,8 +13,8 @@ ADMINS = ( MANAGERS = ADMINS -DATABASE_ENGINE = '' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. -DATABASE_NAME = '' # Or path to database file if using sqlite3. +DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. +DATABASE_NAME = 'db.db' # Or path to database file if using sqlite3. DATABASE_USER = '' # Not used with sqlite3. DATABASE_PASSWORD = '' # Not used with sqlite3. DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. @@ -69,11 +73,8 @@ TEMPLATE_DIRS = ( # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. + os.path.join(PROJECT_DIR, 'templates'), ) INSTALLED_APPS = ( - 'django.contrib.auth', - 'django.contrib.contenttypes', - 'django.contrib.sessions', - 'django.contrib.sites', )