Permalink
Browse files

Updated documentation

  • Loading branch information...
1 parent 36172d5 commit 64629c78a6f64d453de03817d3870e1eb821f8d9 @jpic jpic committed Feb 18, 2013
Showing with 2 additions and 25 deletions.
  1. +0 −12 docs/source/quick.rst
  2. +2 −13 session_security/settings.py
View
@@ -4,9 +4,6 @@ Quick setup
The purpose of this documentation is to get you started as fast as possible,
because your time matters and you probably have other things to worry about.
-Quick install
--------------
-
Install the package::
pip install django-session-security
@@ -41,12 +38,3 @@ then you're on your own to manage staticfiles.
Add to your base template::
{% include 'session_security/all.html' %}
-
-Quick setup
------------
-
-**Unless** ``pinax.apps.account`` is found in ``settings.INSTALLED_APPS``,
-configure these settings:
-
-- LOGIN_URL, the absolute url to your login view
-- LOGOUT_URL, the absolute url to your logout view
@@ -16,12 +16,6 @@
it should not be used to update the user's last activity datetime.
Overridable in ``settings.SESSION_SECURITY_PASSIVE_URLS``.
-LOGOUT_URL
- Url to logout. Uses ``settings.LOGOUT_URL``.
-
-LOGIN_URL
- Url to login. Uses settings.LOGIN_URL``.
-
Note that this module will raise a warning if
``settings.SESSION_EXPIRE_AT_BROWSER_CLOSE`` is not True, because it makes no
sense to use this app with ``SESSION_EXPIRE_AT_BROWSER_CLOSE`` to False.
@@ -32,16 +26,11 @@
from django.core import urlresolvers
from django.conf import settings
-__all__ = ['EXPIRE_AFTER', 'WARN_AFTER', 'LOGIN_URL', 'LOGOUT_URL',
- 'PASSIVE_URLS']
+__all__ = ['EXPIRE_AFTER', 'WARN_AFTER', 'PASSIVE_URLS']
EXPIRE_AFTER = getattr(settings, 'SESSION_SECURITY_EXPIRE_AFTER', 600)
-WARN_AFTER = getattr(settings, 'SESSION_SECURITY_WARN_AFTER', 30)
-
-LOGIN_URL = settings.LOGIN_URL
-
-LOGOUT_URL = getattr(settings, 'LOGOUT_URL', False)
+WARN_AFTER = getattr(settings, 'SESSION_SECURITY_WARN_AFTER', 540)
PASSIVE_URLS = getattr(settings, 'SESSION_SECURITY_PASSIVE_URLS', [])
PASSIVE_URLS += [

0 comments on commit 64629c7

Please sign in to comment.