django-session-security icon indicating copy to clipboard operation
django-session-security copied to clipboard

Django 2.1 & 2.2 compatibility?

Open jhancia opened this issue 6 years ago • 4 comments

Is this package compatible with Django 2.1 & 2.2? Anyone using it in production? If so, we should add it to tox.ini and travis.yml

jhancia avatar May 19 '19 23:05 jhancia

Yes, I am using python 3.7, Django 2.2, jQuery 2.1.4. It works. But the documentation needs to be updated:

  1. settings.TEMPLATE_CONTEXT_PROCESSORS - 'django.core.context_processors.request' is replaced by 'django.template.context_processors.request' according to the documentation here.

  2. url(r'session_security/', include('session_security.urls')) is changed in django 2.2. Use path('session_security/', include('session_security.urls')),

sillycube avatar Sep 13 '19 03:09 sillycube

Ping me in a pull request and I’ll review and merge. Thanks.

mpasternak avatar Sep 13 '19 04:09 mpasternak

Not working for me in Django 2.2, any tips? I followed changes above. User get logged out after time regardless of activity and the popup warning never shows.

its4net avatar Sep 10 '21 16:09 its4net

@its4net do you get any JavaScript errors in your browser debug console?

Did you included the session_security/all.html template?

And did you loaded jQuery in any way?

{# Load SessionSecurity javascript 'class', jquery should be loaded - by you - at this point #}
<script type="text/javascript" src="{% static 'session_security/script.js' %}"></script>

JanMalte avatar Feb 08 '22 20:02 JanMalte