Skip to content

Commit

Permalink
lol forgot how git works
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrobenolt committed Apr 8, 2014
1 parent 5d01ebf commit c7e4f68
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions django_sudo/settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
"""
django_sudo.settings
~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2014 by Matt Robenolt.
:license: BSD, see LICENSE for more details.
"""
from django.conf import settings

REDIRECT_URL = getattr(settings, 'SUDO_REDIRECT_URL', '/')
REDIRECT_FIELD_NAME = getattr(settings, 'SUDO_REDIRECT_FIELD_NAME', 'next')
COOKIE_AGE = getattr(settings, 'SUDO_COOKIE_AGE', 10800)
COOKIE_DOMAIN = getattr(settings, 'SUDO_COOKIE_DOMAIN', None)
COOKIE_HTTPONLY = getattr(settings, 'SUDO_COOKIE_HTTPONLY', True)
COOKIE_NAME = getattr(settings, 'SUDO_COOKIE_NAME', 'sudo')
COOKIE_PATH = getattr(settings, 'SUDO_COOKIE_PATH', '/')
COOKIE_SECURE = getattr(settings, 'SUDO_COOKIE_SECURE', None)

0 comments on commit c7e4f68

Please sign in to comment.