2 Django settings for sf_t3d project.
4 Generated by 'django-admin startproject' using Django 1.9.
6 For more information on this file, see
7 https://docs.djangoproject.com/en/1.9/topics/settings/
9 For the full list of settings and their values, see
10 https://docs.djangoproject.com/en/1.9/ref/settings/
15 # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
16 BASE_DIR
= os
.path
.dirname(os
.path
.dirname(os
.path
.abspath(__file__
)))
19 # Quick-start development settings - unsuitable for production
20 # See https://docs.djangoproject.com/en/1.9/howto/deployment/checklist/
22 # SECURITY WARNING: keep the secret key used in production secret!
23 SECRET_KEY
= 'o5+o2jv(3-dqr(&ia#-@79cgr%xi*s+6xjws^8cxp211ge#buf'
25 # SECURITY WARNING: don't run with debug turned on in production!
30 AUTH_USER_MODEL
= "sf_user.CustomUser"
32 SITE_NAME
= "Open Source MANO"
33 SHORT_SITE_NAME
= "OSM"
41 # Application definition
43 'django.contrib.admin',
44 'django.contrib.auth',
45 'django.contrib.contenttypes',
46 'django.contrib.messages',
47 'django.contrib.staticfiles',
55 MIDDLEWARE_CLASSES
= [
56 'django.middleware.security.SecurityMiddleware',
57 'django.contrib.sessions.middleware.SessionMiddleware',
58 'django.middleware.common.CommonMiddleware',
59 'django.middleware.csrf.CsrfViewMiddleware',
60 'django.contrib.auth.middleware.AuthenticationMiddleware',
61 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
62 'django.contrib.messages.middleware.MessageMiddleware',
63 'django.middleware.clickjacking.XFrameOptionsMiddleware',
67 SESSION_ENGINE
='sf_user.sessions'
68 SESSION_COOKIE_AGE
= 3500 #25 min
69 SESSION_EXPIRE_AT_BROWSER_CLOSE
= True
70 SESSION_SAVE_EVERY_REQUEST
= True
72 ROOT_URLCONF
= 'sf_t3d.urls'
76 'BACKEND': 'django.template.backends.django.DjangoTemplates',
78 os
.path
.join(BASE_DIR
, 'template'),
79 os
.path
.join(BASE_DIR
, 'projecthandler', 'template'),
80 os
.path
.join(BASE_DIR
, 'projecthandler', 'template', 'download'),
81 os
.path
.join(BASE_DIR
, 'projecthandler', 'template', 'project'),
82 os
.path
.join(BASE_DIR
, 'vimhandler', 'template'),
83 os
.path
.join(BASE_DIR
, 'instancehandler', 'template'),
84 os
.path
.join(BASE_DIR
, 'sdnctrlhandler', 'template'),
88 'context_processors': [
89 'django.template.context_processors.debug',
90 'django.template.context_processors.request',
91 'django.contrib.auth.context_processors.auth',
92 'django.contrib.messages.context_processors.messages',
93 'sf_t3d.context_processor.conf_constants',
96 'get': 'sf_t3d.templatetags.get',
97 'date_tag': 'sf_t3d.templatetags.datetag',
103 WSGI_APPLICATION
= 'sf_t3d.wsgi.application'
107 # https://docs.djangoproject.com/en/1.9/ref/settings/#databases
111 'ENGINE': 'django.db.backends.sqlite3',
112 'NAME': os
.path
.join(BASE_DIR
, 'db.sqlite3'),
117 # Password validation
118 # https://docs.djangoproject.com/en/1.9/ref/settings/#auth-password-validators
120 AUTH_PASSWORD_VALIDATORS
= [
122 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
125 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
128 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
131 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
136 # Internationalization
137 # https://docs.djangoproject.com/en/1.9/topics/i18n/
139 LANGUAGE_CODE
= 'en-us'
150 # Static files (CSS, JavaScript, Images)
151 # https://docs.djangoproject.com/en/1.9/howto/static-files/
153 STATIC_URL
= '/static/'
155 STATICFILES_FINDERS
= (
156 'django.contrib.staticfiles.finders.FileSystemFinder',
157 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
158 'django.contrib.staticfiles.finders.DefaultStorageFinder'
162 # Put strings here, like "/home/html/static" or "C:/www/django/static".
163 # Always use forward slashes, even on Windows.
164 # Don't forget to use absolute paths, not relative paths.
165 os
.path
.join(BASE_DIR
, "static"),
169 os
.path
.join(BASE_DIR
, 'locale'),