python - Where to override JWT_EXPIRATION_DELTA for setting custom token expiration time? -


i using django-rest-framework-jwt authenticating users on restful web service. problem every time issue token gets expired after 5 minutes. have gone through following documentation http://getblimp.github.io/django-rest-framework-jwt/#additional-settings

it says can override behaviour overriding jwt_expiration_delta variable, doesn't tells how ? i've tried overriding in project's settings.py , in views.py not working. how , should override these variables in general our django-rest application ?

in settings.py:

import datetime  jwt_auth = {     'jwt_expiration_delta': datetime.timedelta(seconds=10) } 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -