X-Git-Url: https://git.mdrn.pl/fnpdjango.git/blobdiff_plain/f8c109c9986e2487464b995671b046dfc38073db..74b5ddcfc3af0c3155915f54c2490fcdda0d19f7:/src/project_name/settings/basic.py?ds=sidebyside diff --git a/src/project_name/settings/basic.py b/src/project_name/settings/basic.py new file mode 100644 index 0000000..65bfd83 --- /dev/null +++ b/src/project_name/settings/basic.py @@ -0,0 +1,37 @@ +from os import path +from . import PROJECT_DIR + + +DEBUG = False +TEMPLATE_DEBUG = DEBUG + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. + 'NAME': 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 = '{{ project_name }}.urls' + +# Python dotted path to the WSGI application used by Django's runserver. +WSGI_APPLICATION = '{{ project_name }}.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. +)