Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
steering
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AURA
steering
Commits
cb14d22d
Commit
cb14d22d
authored
2 years ago
by
Ernesto Rico Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
Remove superfluous comments
parent
dc86d6e1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
steering/settings.py
+0
-6
0 additions, 6 deletions
steering/settings.py
with
0 additions
and
6 deletions
steering/settings.py
+
0
−
6
View file @
cb14d22d
# Django settings for pv project.
import
os
import
os
from
pathlib
import
Path
from
pathlib
import
Path
...
@@ -8,7 +6,6 @@ from django_auth_ldap.config import LDAPSearch, PosixGroupType
...
@@ -8,7 +6,6 @@ from django_auth_ldap.config import LDAPSearch, PosixGroupType
import
ldap
import
ldap
# Paths
BASE_DIR
=
Path
(
__file__
).
resolve
(
strict
=
True
).
parent
.
parent
BASE_DIR
=
Path
(
__file__
).
resolve
(
strict
=
True
).
parent
.
parent
LOCALE_PATHS
=
(
BASE_DIR
/
"
locale
"
,)
LOCALE_PATHS
=
(
BASE_DIR
/
"
locale
"
,)
...
@@ -27,14 +24,12 @@ SITE_ID = 1
...
@@ -27,14 +24,12 @@ SITE_ID = 1
# Must be set if DEBUG is False
# Must be set if DEBUG is False
ALLOWED_HOSTS
=
os
.
getenv
(
"
ALLOWED_HOSTS
"
,
default
=
"
127.0.0.1,localhost
"
).
split
(
"
,
"
)
ALLOWED_HOSTS
=
os
.
getenv
(
"
ALLOWED_HOSTS
"
,
default
=
"
127.0.0.1,localhost
"
).
split
(
"
,
"
)
# Whitelist origins that access the API
CORS_ALLOWED_ORIGINS
=
[
"
http://localhost:8080
"
,
"
http://localhost:8040
"
]
CORS_ALLOWED_ORIGINS
=
[
"
http://localhost:8080
"
,
"
http://localhost:8040
"
]
CORS_ALLOW_CREDENTIALS
=
True
CORS_ALLOW_CREDENTIALS
=
True
CORS_ALLOW_HEADERS
=
list
(
default_headers
)
+
[
CORS_ALLOW_HEADERS
=
list
(
default_headers
)
+
[
"
content-disposition
"
,
"
content-disposition
"
,
]
]
# ENGINE is 'sqlite3' by default and NAME is 'db.sqlite3' by default
DATABASES
=
{
DATABASES
=
{
"
default
"
:
{
"
default
"
:
{
"
ENGINE
"
:
f
"
django.db.backends.
{
os
.
getenv
(
'
DATABASE_ENGINE
'
,
default
=
'
sqlite3
'
)
}
"
,
"
ENGINE
"
:
f
"
django.db.backends.
{
os
.
getenv
(
'
DATABASE_ENGINE
'
,
default
=
'
sqlite3
'
)
}
"
,
...
@@ -46,7 +41,6 @@ DATABASES = {
...
@@ -46,7 +41,6 @@ DATABASES = {
},
},
}
}
# LOCALIZATION
TIME_ZONE
=
os
.
getenv
(
"
TZ
"
,
default
=
"
Europe/Vienna
"
)
TIME_ZONE
=
os
.
getenv
(
"
TZ
"
,
default
=
"
Europe/Vienna
"
)
LANGUAGE_CODE
=
"
de
"
LANGUAGE_CODE
=
"
de
"
USE_L10N
=
True
USE_L10N
=
True
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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