X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/9ae83685ae10ad4d0e6f6091413b1d2488eaf478..695023a09f7ed62d3a414dfc7c7b909fd0d1171b:/edumed/settings/basic.py diff --git a/edumed/settings/basic.py b/edumed/settings/basic.py new file mode 100644 index 0000000..3e553b3 --- /dev/null +++ b/edumed/settings/basic.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +import os.path + +from .paths import PROJECT_DIR + +DEBUG = False +TEMPLATE_DEBUG = DEBUG + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. + 'NAME': os.path.join(PROJECT_DIR, 'dev.db'), # 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. + } +} + +SITE_ID = 1 + +# List of callables that know how to import templates from various sources. +TEMPLATE_LOADERS = ( + 'django.template.loaders.filesystem.Loader', + 'django.template.loaders.app_directories.Loader', + # 'django.template.loaders.eggs.Loader', +) + +ROOT_URLCONF = 'edumed.urls' + +SUBDOMAIN_URLCONFS = { + None: 'edumed.urls', + 'katalog': 'edumed.milurls', +} + +# Python dotted path to the WSGI application used by Django's runserver. +WSGI_APPLICATION = 'edumed.wsgi.application' + +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. +)