fnp
/
django-cas-provider.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fixed some formatting
[django-cas-provider.git]
/
cas_provider
/
__init__.py
1
from django.conf import settings
2
3
__all__ = []
4
5
_DEFAULTS = {
6
'CAS_TICKET_EXPIRATION': 5, # In minutes
7
}
8
9
for key, value in _DEFAULTS.iteritems():
10
try:
11
getattr(settings, key)
12
except AttributeError:
13
setattr(settings, key, value)
14
except ImportError:
15
pass