Closed starenka closed 11 years ago
Environment:
Request Method: GET Request URL: http://127.0.0.1:8000/ Django Version: 1.5.2 Python Version: 2.7.5 Installed Applications: ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.admin', 'django.contrib.markup', 'settings_context_processor', 'compressor', 'south', 'floppyforms', 'impersonate', 'rest_framework', 'password_policies', 'luft_utils', 'core', 'mezixicht', 'data_migration', 'django_extensions', 'devserver') Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'core.middleware.CheckPasswordExpiration', 'impersonate.middleware.ImpersonateMiddleware') Traceback: File "/data/.envs/scorp/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 115. response = callback(request, *callback_args, **callback_kwargs) File "/data/.envs/scorp/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view 25. return view_func(request, *args, **kwargs) File "/data/www/outcomm/scorp/core/views.py" in homepage 7. return render(request, 'dashboard.html', {}) File "/data/.envs/scorp/local/lib/python2.7/site-packages/django/shortcuts/__init__.py" in render 49. context_instance = RequestContext(request, current_app=current_app) File "/data/.envs/scorp/local/lib/python2.7/site-packages/django/template/context.py" in __init__ 179. self.update(processor(request)) File "/data/.envs/scorp/local/lib/python2.7/site-packages/password_policies/context_processors.py" in password_status 29. r = PasswordHistory.objects.change_required(request.user) File "/data/.envs/scorp/local/lib/python2.7/site-packages/password_policies/managers.py" in change_required 46. if last_change_date < expired_date: Exception Type: TypeError at / Exception Value: can't compare offset-naive and offset-aware datetimes
this should resolve this issue https://github.com/starenka/django-password-policies/commit/d9e653ee2a65d9f2da95151d58fa1da5b7ffec11
Closed by #4.
Environment: