Coder Social home page Coder Social logo

hotkit / django-fost-authn Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 3.0 318 KB

An authentication back-end for Django implementing request and URL signing using strong cryptography. It is based on the request signing mechanism implemented by Amazon for s3.

License: Boost Software License 1.0

Python 98.66% Shell 1.34%

django-fost-authn's People

Contributors

kayess avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

django-fost-authn's Issues

Django test fails with fost_authn.FostBackend enabled

if i add fost_authn.FostBackend to AUTHENTICATION_BACKENDS, i get many failures in ./manage.py tests

Creating test database for alias 'default'...
..............................................................................................................................................................................ERROR:django.request:Internal Server Error: /add/debug/
Traceback (most recent call last):
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/views/decorators/cache.py", line 79, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/tests/urls.py", line 31, in add
    getattr(messages, message_type)(request, msg)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 82, in debug
    fail_silently=fail_silently)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 26, in add_message
    raise MessageFailure('Without the django.contrib.messages '
MessageFailure: Without the django.contrib.messages middleware, messages can only be added to authenticated users.
ERROR:django.request:Internal Server Error: /add/info/
Traceback (most recent call last):
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/views/decorators/cache.py", line 79, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/tests/urls.py", line 31, in add
    getattr(messages, message_type)(request, msg)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 90, in info
    fail_silently=fail_silently)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 26, in add_message
    raise MessageFailure('Without the django.contrib.messages '
MessageFailure: Without the django.contrib.messages middleware, messages can only be added to authenticated users.
ERROR:django.request:Internal Server Error: /add/success/
Traceback (most recent call last):
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/views/decorators/cache.py", line 79, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/tests/urls.py", line 31, in add
    getattr(messages, message_type)(request, msg)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 98, in success
    fail_silently=fail_silently)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 26, in add_message
    raise MessageFailure('Without the django.contrib.messages '
MessageFailure: Without the django.contrib.messages middleware, messages can only be added to authenticated users.
ERROR:django.request:Internal Server Error: /add/warning/
Traceback (most recent call last):
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/views/decorators/cache.py", line 79, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/tests/urls.py", line 31, in add
    getattr(messages, message_type)(request, msg)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 106, in warning
    fail_silently=fail_silently)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 26, in add_message
    raise MessageFailure('Without the django.contrib.messages '
MessageFailure: Without the django.contrib.messages middleware, messages can only be added to authenticated users.
ERROR:django.request:Internal Server Error: /add/error/
Traceback (most recent call last):
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/views/decorators/cache.py", line 79, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/tests/urls.py", line 31, in add
    getattr(messages, message_type)(request, msg)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 114, in error
    fail_silently=fail_silently)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 26, in add_message
    raise MessageFailure('Without the django.contrib.messages '
MessageFailure: Without the django.contrib.messages middleware, messages can only be added to authenticated users.
.........................ERROR:django.request:Internal Server Error: /add/debug/
Traceback (most recent call last):
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/views/decorators/cache.py", line 79, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/tests/urls.py", line 31, in add
    getattr(messages, message_type)(request, msg)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 82, in debug
    fail_silently=fail_silently)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 26, in add_message
    raise MessageFailure('Without the django.contrib.messages '
MessageFailure: Without the django.contrib.messages middleware, messages can only be added to authenticated users.
ERROR:django.request:Internal Server Error: /add/info/
Traceback (most recent call last):
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/views/decorators/cache.py", line 79, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/tests/urls.py", line 31, in add
    getattr(messages, message_type)(request, msg)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 90, in info
    fail_silently=fail_silently)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 26, in add_message
    raise MessageFailure('Without the django.contrib.messages '
MessageFailure: Without the django.contrib.messages middleware, messages can only be added to authenticated users.
ERROR:django.request:Internal Server Error: /add/success/
Traceback (most recent call last):
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/views/decorators/cache.py", line 79, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/tests/urls.py", line 31, in add
    getattr(messages, message_type)(request, msg)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 98, in success
    fail_silently=fail_silently)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 26, in add_message
    raise MessageFailure('Without the django.contrib.messages '
MessageFailure: Without the django.contrib.messages middleware, messages can only be added to authenticated users.
ERROR:django.request:Internal Server Error: /add/warning/
Traceback (most recent call last):
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/views/decorators/cache.py", line 79, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/tests/urls.py", line 31, in add
    getattr(messages, message_type)(request, msg)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 106, in warning
    fail_silently=fail_silently)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 26, in add_message
    raise MessageFailure('Without the django.contrib.messages '
MessageFailure: Without the django.contrib.messages middleware, messages can only be added to authenticated users.
ERROR:django.request:Internal Server Error: /add/error/
Traceback (most recent call last):
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/views/decorators/cache.py", line 79, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/tests/urls.py", line 31, in add
    getattr(messages, message_type)(request, msg)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 114, in error
    fail_silently=fail_silently)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 26, in add_message
    raise MessageFailure('Without the django.contrib.messages '
MessageFailure: Without the django.contrib.messages middleware, messages can only be added to authenticated users.
..............................ERROR:django.request:Internal Server Error: /add/debug/
Traceback (most recent call last):
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/views/decorators/cache.py", line 79, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/tests/urls.py", line 31, in add
    getattr(messages, message_type)(request, msg)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 82, in debug
    fail_silently=fail_silently)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 26, in add_message
    raise MessageFailure('Without the django.contrib.messages '
MessageFailure: Without the django.contrib.messages middleware, messages can only be added to authenticated users.
ERROR:django.request:Internal Server Error: /add/info/
Traceback (most recent call last):
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/views/decorators/cache.py", line 79, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/tests/urls.py", line 31, in add
    getattr(messages, message_type)(request, msg)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 90, in info
    fail_silently=fail_silently)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 26, in add_message
    raise MessageFailure('Without the django.contrib.messages '
MessageFailure: Without the django.contrib.messages middleware, messages can only be added to authenticated users.
ERROR:django.request:Internal Server Error: /add/success/
Traceback (most recent call last):
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/views/decorators/cache.py", line 79, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/tests/urls.py", line 31, in add
    getattr(messages, message_type)(request, msg)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 98, in success
    fail_silently=fail_silently)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 26, in add_message
    raise MessageFailure('Without the django.contrib.messages '
MessageFailure: Without the django.contrib.messages middleware, messages can only be added to authenticated users.
ERROR:django.request:Internal Server Error: /add/warning/
Traceback (most recent call last):
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/views/decorators/cache.py", line 79, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/tests/urls.py", line 31, in add
    getattr(messages, message_type)(request, msg)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 106, in warning
    fail_silently=fail_silently)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 26, in add_message
    raise MessageFailure('Without the django.contrib.messages '
MessageFailure: Without the django.contrib.messages middleware, messages can only be added to authenticated users.
ERROR:django.request:Internal Server Error: /add/error/
Traceback (most recent call last):
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/views/decorators/cache.py", line 79, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/tests/urls.py", line 31, in add
    getattr(messages, message_type)(request, msg)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 114, in error
    fail_silently=fail_silently)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 26, in add_message
    raise MessageFailure('Without the django.contrib.messages '
MessageFailure: Without the django.contrib.messages middleware, messages can only be added to authenticated users.
........................ERROR:django.request:Internal Server Error: /add/debug/
Traceback (most recent call last):
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/views/decorators/cache.py", line 79, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/tests/urls.py", line 31, in add
    getattr(messages, message_type)(request, msg)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 82, in debug
    fail_silently=fail_silently)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 26, in add_message
    raise MessageFailure('Without the django.contrib.messages '
MessageFailure: Without the django.contrib.messages middleware, messages can only be added to authenticated users.
ERROR:django.request:Internal Server Error: /add/info/
Traceback (most recent call last):
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/views/decorators/cache.py", line 79, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/tests/urls.py", line 31, in add
    getattr(messages, message_type)(request, msg)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 90, in info
    fail_silently=fail_silently)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 26, in add_message
    raise MessageFailure('Without the django.contrib.messages '
MessageFailure: Without the django.contrib.messages middleware, messages can only be added to authenticated users.
ERROR:django.request:Internal Server Error: /add/success/
Traceback (most recent call last):
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/views/decorators/cache.py", line 79, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/tests/urls.py", line 31, in add
    getattr(messages, message_type)(request, msg)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 98, in success
    fail_silently=fail_silently)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 26, in add_message
    raise MessageFailure('Without the django.contrib.messages '
MessageFailure: Without the django.contrib.messages middleware, messages can only be added to authenticated users.
ERROR:django.request:Internal Server Error: /add/warning/
Traceback (most recent call last):
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/views/decorators/cache.py", line 79, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/tests/urls.py", line 31, in add
    getattr(messages, message_type)(request, msg)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 106, in warning
    fail_silently=fail_silently)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 26, in add_message
    raise MessageFailure('Without the django.contrib.messages '
MessageFailure: Without the django.contrib.messages middleware, messages can only be added to authenticated users.
ERROR:django.request:Internal Server Error: /add/error/
Traceback (most recent call last):
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/views/decorators/cache.py", line 79, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/tests/urls.py", line 31, in add
    getattr(messages, message_type)(request, msg)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 114, in error
    fail_silently=fail_silently)
  File "/home/sajal/envs/cdnplanet/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/messages/api.py", line 26, in add_message
    raise MessageFailure('Without the django.contrib.messages '
MessageFailure: Without the django.contrib.messages middleware, messages can only be added to authenticated users.
........................................................................................
----------------------------------------------------------------------
Ran 341 tests in 13.980s

OK

The test runs fine without the FostBackend added.
Am I doing something wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.