Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
ValUnifer
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IPIPAN
ValUnifer
Commits
772bf5a8
Commit
772bf5a8
authored
2 years ago
by
dcz
Browse files
Options
Downloads
Patches
Plain Diff
+settings.py
parent
bef33217
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
shellvalier/settings.py
+155
-0
155 additions, 0 deletions
shellvalier/settings.py
with
155 additions
and
0 deletions
shellvalier/settings.py
0 → 100644
+
155
−
0
View file @
772bf5a8
"""
Django settings for ShellValier project.
Generated by
'
django-admin startproject
'
using Django 2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import
os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.1/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY
=
'
xxx
'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG
=
True
# for production
'''
SECURE_CONTENT_TYPE_NOSNIFF = True
SECURE_BROWSER_XSS_FILTER = True
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True
X_FRAME_OPTIONS =
'
DENY
'
'''
ALLOWED_HOSTS
=
[
'
127.0.0.1
'
]
# Application definition
INSTALLED_APPS
=
[
'
django.contrib.admin
'
,
'
django.contrib.auth
'
,
'
django.contrib.contenttypes
'
,
'
django.contrib.sessions
'
,
'
django.contrib.messages
'
,
'
django.contrib.staticfiles
'
,
'
common.apps.CommonConfig
'
,
'
connections.apps.ConnectionsConfig
'
,
'
examples.apps.ExamplesConfig
'
,
'
meanings.apps.MeaningsConfig
'
,
'
semantics.apps.SemanticsConfig
'
,
'
syntax.apps.SyntaxConfig
'
,
'
entries.apps.EntriesConfig
'
,
'
phrase_expansions.apps.PhraseExpansionsConfig
'
,
'
dictionary_statistics.apps.DictionaryStatisticsConfig
'
,
'
download.apps.DownloadConfig
'
,
'
crispy_forms
'
,
]
CRISPY_TEMPLATE_PACK
=
'
bootstrap4
'
CRISPY_FAIL_SILENTLY
=
not
DEBUG
MIDDLEWARE
=
[
'
django.middleware.security.SecurityMiddleware
'
,
'
django.contrib.sessions.middleware.SessionMiddleware
'
,
'
django.middleware.common.CommonMiddleware
'
,
'
django.middleware.csrf.CsrfViewMiddleware
'
,
'
django.contrib.auth.middleware.AuthenticationMiddleware
'
,
'
django.contrib.messages.middleware.MessageMiddleware
'
,
'
django.middleware.clickjacking.XFrameOptionsMiddleware
'
,
'
django.middleware.locale.LocaleMiddleware
'
,
]
ROOT_URLCONF
=
'
shellvalier.urls
'
TEMPLATES
=
[
{
'
BACKEND
'
:
'
django.template.backends.django.DjangoTemplates
'
,
'
DIRS
'
:
[],
'
APP_DIRS
'
:
True
,
'
OPTIONS
'
:
{
'
context_processors
'
:
[
'
django.template.context_processors.debug
'
,
'
django.template.context_processors.request
'
,
'
django.contrib.auth.context_processors.auth
'
,
'
django.contrib.messages.context_processors.messages
'
,
],
},
},
]
WSGI_APPLICATION
=
'
shellvalier.wsgi.application
'
# Database
# https://docs.djangoproject.com/en/2.1/ref/settings/#databases
DATABASES
=
{
'
default
'
:
{
'
ENGINE
'
:
'
django.db.backends.postgresql
'
,
'
NAME
'
:
'
shellvalier
'
,
'
USER
'
:
'
shellvalier
'
,
'
PASSWORD
'
:
'
shellvalier
'
,
'
HOST
'
:
'
localhost
'
,
'
PORT
'
:
''
,
}}
# Password validation
# https://docs.djangoproject.com/en/2.1/ref/settings/#auth-password-validators
AUTH_PASSWORD_VALIDATORS
=
[
{
'
NAME
'
:
'
django.contrib.auth.password_validation.UserAttributeSimilarityValidator
'
,
},
{
'
NAME
'
:
'
django.contrib.auth.password_validation.MinimumLengthValidator
'
,
},
{
'
NAME
'
:
'
django.contrib.auth.password_validation.CommonPasswordValidator
'
,
},
{
'
NAME
'
:
'
django.contrib.auth.password_validation.NumericPasswordValidator
'
,
},
]
# Internationalization
# https://docs.djangoproject.com/en/2.1/topics/i18n/
LANGUAGE_CODE
=
'
pl
'
TIME_ZONE
=
'
UTC
'
USE_I18N
=
True
USE_L10N
=
True
USE_TZ
=
True
LOCALE_PATHS
=
[
'
locale
'
,
]
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.1/howto/static-files/
STATIC_URL
=
'
/static/
'
STATICFILES_DIRS
=
[
os
.
path
.
join
(
BASE_DIR
,
'
common/static/
'
),
]
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment