Skip to content
Snippets Groups Projects
Commit bb9f99d1 authored by Art's avatar Art :lizard:
Browse files

Insignificant details

parent bcfbb774
Branches
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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"
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment