Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
djangoldp
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
djangoldp-packages
djangoldp
Commits
0946b030
Commit
0946b030
authored
4 years ago
by
plup
Browse files
Options
Downloads
Patches
Plain Diff
bugfix: hooked guardian backend
parent
19475282
No related branches found
No related tags found
1 merge request
!158
Load djangoldp conguration from YAML file
Pipeline
#9252
failed
4 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
djangoldp/conf/default_settings.py
+10
-0
10 additions, 0 deletions
djangoldp/conf/default_settings.py
with
10 additions
and
0 deletions
djangoldp/conf/default_settings.py
+
10
−
0
View file @
0946b030
...
...
@@ -72,6 +72,14 @@ BASE_URL = SITE_URL
# Default URL conf
ROOT_URLCONF
=
'
djangoldp.urls
'
# Absolute filesystem path to the directory that will hold user-uploaded files.
# Example: "/var/www/example.com/media/"
MEDIA_ROOT
=
''
# URL that handles the media served from MEDIA_ROOT.
# Examples: "http://example.com/media/", "http://media.example.com/"
MEDIA_URL
=
'
/media/
'
# Absolute path to the directory static files should be collected to.
# Example: "/var/www/example.com/static/"
STATIC_ROOT
=
None
...
...
@@ -124,6 +132,8 @@ DCS_SESSION_COOKIE_SAMESITE = 'none'
# AUTHENTICATION #
##################
AUTHENTICATION_BACKENDS
=
[
'
django.contrib.auth.backends.ModelBackend
'
,
'
guardian.backends.ObjectPermissionBackend
'
]
# The minimum number of seconds a password reset link is valid for
PASSWORD_RESET_TIMEOUT
=
60
*
60
*
24
*
3
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