Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ssoauth
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
django
ssoauth
Commits
bb9f99d1
Commit
bb9f99d1
authored
3 years ago
by
Art
Browse files
Options
Downloads
Patches
Plain Diff
Insignificant details
parent
bcfbb774
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ssoauth/app_settings/__init__.py
+5
-6
5 additions, 6 deletions
ssoauth/app_settings/__init__.py
ssoauth/app_settings/defaults.py
+2
-5
2 additions, 5 deletions
ssoauth/app_settings/defaults.py
with
7 additions
and
11 deletions
ssoauth/app_settings/__init__.py
+
5
−
6
View file @
bb9f99d1
...
...
@@ -9,10 +9,9 @@ from .defaults import *
# merge defaults with customized user settings
for
setting_name
in
[
k
for
k
in
globals
().
keys
()
if
k
.
isupper
()]:
for
name
in
[
"
SSOAUTH_
"
+
setting_name
,
setting_name
]:
for
name
in
[
setting_name
,
"
SSOAUTH_
"
+
setting_name
]:
try
:
globals
()[
setting_name
]
=
getattr
(
conf
.
settings
,
name
)
continue
except
(
KeyError
,
AttributeError
):
pass
# not set
...
...
This diff is collapsed.
Click to expand it.
ssoauth/app_settings/defaults.py
+
2
−
5
View file @
bb9f99d1
...
...
@@ -3,12 +3,9 @@ from django.conf import settings as django_settings
"""
Changing settings
in Django
:
- put the setting it into your project settings
Changing settings:
- put the setting it into your
django
project settings
- optionally prefix the setting with
"
SSOAUTH_
"
Changing settings outside of Django:
- import ssoauth.app_settings
- ssoauth.app_settings.SETTING_NAME =
"
your new value
"
"""
...
...
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