gtaylor / django-dynamodb-sessions Goto Github PK
View Code? Open in Web Editor NEWA Django session backend for Amazon's DynamoDB
Home Page: http://pypi.python.org/pypi/django-dynamodb-sessions/
License: BSD 3-Clause "New" or "Revised" License
A Django session backend for Amazon's DynamoDB
Home Page: http://pypi.python.org/pypi/django-dynamodb-sessions/
License: BSD 3-Clause "New" or "Revised" License
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 188, in get_response
response = middleware_method(request, response)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/sessions/middleware.py", line 36, in process_response
request.session.save()
File "/usr/local/lib/python2.7/dist-packages/dynamodb_sessions/backends/cached_dynamodb.py", line 36, in save
super(SessionStore, self).save(must_create)
File "/usr/local/lib/python2.7/dist-packages/dynamodb_sessions/backends/dynamodb.py", line 160, in save
item.save()
File "/usr/local/lib/python2.7/dist-packages/boto/dynamodb/item.py", line 141, in save
return_values)
File "/usr/local/lib/python2.7/dist-packages/boto/dynamodb/layer2.py", line 509, in update_item
item.hash_key, item.range_key)
File "/usr/local/lib/python2.7/dist-packages/boto/dynamodb/layer2.py", line 210, in build_key_from_values
dynamodb_value = dynamize_value(hash_key)
File "/usr/local/lib/python2.7/dist-packages/boto/dynamodb/types.py", line 85, in dynamize_value
dynamodb_type = get_dynamodb_type(val)
File "/usr/local/lib/python2.7/dist-packages/boto/dynamodb/types.py", line 64, in get_dynamodb_type
raise TypeError(msg)
TypeError: Unsupported type "<type 'NoneType'>" for value "None"
Figure out how to expire sessions. The first order of business would be to actually store session creation times. We'd probably have to store them as a UNIX Epoch time int, so we can run a simple query to figure out what to purge.
Need new API support and support to DynamoDB Local.
http://boto.readthedocs.org/en/latest/dynamodb2_tut.html
The current version of the Django setup.py template. trying to set up by following the readme generates a
django.core.exceptions.ImproperlyConfigured: 'dynamodb_sessions.backends.dynamodb' isn't an available database backend.
Try using django.db.backends.XXX, where XXX is one of:
'dummy', 'mysql', 'oracle', 'postgresql_psycopg2', 'sqlite3'
Error was: No module named base
error.
If I submitted a PR that included Python 3 support, which would mean using PynamoDB as it uses botocore, not boto (not Python 3 ready).
Is this something you would accept?
Please update version number for remove error in old versions. And use in Django > 1.5
For example:
File "/usr/local/lib/python2.7/dist-packages/dynamodb_sessions/backends/cached_dynamodb.py", line 6, in
from dynamodb_sessions.backends.dynamodb import SessionStore as DynamoDBStore
File "/usr/local/lib/python2.7/dist-packages/dynamodb_sessions/backends/dynamodb.py", line 7, in
from django.utils.hashcompat import md5_constructor
ImportError: No module named hashcompat
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.