-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates needed to make this work in production.
- Loading branch information
1 parent
50ab23e
commit 048ac77
Showing
7 changed files
with
83 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
""" | ||
Add the NONE email Contact if it does not exits. This placeholder is required to make the GUI happy. | ||
""" | ||
from __future__ import unicode_literals | ||
|
||
|
||
# https://stackoverflow.com/questions/19475955/using-django-models-in-external-python-script | ||
from django.core.management.base import BaseCommand | ||
|
||
from sites.models import add_none_contact | ||
|
||
|
||
class Command(BaseCommand): | ||
help = "add the NONE email Contact if needed" | ||
|
||
def handle(self, *args, **options): | ||
add_none_contact() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,8 +58,9 @@ def get_secret(key): | |
|
||
# SECURITY WARNING: don't run with debug turned on in production! | ||
DEBUG = True | ||
DEBUG_SAML_DEBUG = False | ||
VERBOSE = False | ||
DEBUG_SAML_DEBUG = True | ||
VERBOSE = True | ||
|
||
|
||
# Organization structure | ||
ALL_ORGS_BY_ID = { | ||
|
@@ -121,6 +122,7 @@ def get_secret(key): | |
NONE_NAME = "#none" | ||
NONE_EMAIL = "#[email protected]" | ||
|
||
|
||
# Expire the session after an hour | ||
SESSION_COOKIE_AGE = 3600 | ||
LOGOUT_EXPIRY = 2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters