pinax / django-user-accounts

User accounts for Django
MIT License
1.22k stars 356 forks source link

TypeError: can't compare offset-naive and offset-aware datetimes While cheching account is expred #354

Closed Yogeshddjango closed 1 year ago

Yogeshddjango commented 3 years ago

File "/home/ge-39/projects/python/django/sesio/env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request) File "/home/ge-39/projects/python/django/sesio/env/lib/python3.6/site-packages/django/utils/deprecation.py", line 113, in call response = self.process_request(request) File "/home/ge-39/projects/python/django/sesio/env/lib/python3.6/site-packages/account/middleware.py", line 75, in process_request if check_password_expired(request.user): File "/home/ge-39/projects/python/django/sesio/env/lib/python3.6/site-packages/account/utils.py", line 137, in check_password_expired if expiration < now: TypeError: can't compare offset-naive and offset-aware datetimes