Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install django-dynamodb2-sessions

How to install django-dynamodb2-sessions

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install django-dynamodb2-sessions
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
Linux (64-bit)
0.3 Available View build log
Web
 
Author
License
BSD License
Dependencies
Lastest release
version 0.3 on Jan 9th, 2014

If You need backend uses Amazon DynamoDB v. 1 see Greg Taylor github

First step: create DynamoDB Table

System Message: WARNING/2 (<string>, line 13)

Title underline too short.

First step: create DynamoDB Table
--------------------------

Visit your DynamoDB tab in the AWS Management Console and follow instructions:

  • Choose the Create Table option.
  • Enter your sessions table name (example: sessions).
  • Select Primary Key Type = Hash.
  • Select Hash Attribute Type as String.
  • Enter session_key for Hash Attribute Name.
  • Choose the Continue option twice.
  • Fill Provisioned Throughput Capacity (only for tests: read - 10 units, write - 5 units).
  • Choose the Continue option.
  • Choose the Create option.

Second step: installation

System Message: WARNING/2 (<string>, line 30)

Title underline too short.

Second step: installation
-------------

Install django-dynamodb2-sessions using pip:

pip install django-dynamodb2-sessions

Export your AWS key and secret key as environment variables because of security:

export AWS_ACCESS_KEY_ID='YourKey'
export AWS_SECRET_ACCESS_KEY='YourSecretKey'
export AWS_REGION_NAME = 'YourRegion'

In your settings.py file, you'll need set variables:

import os
AWS_ACCESS_KEY_ID = os.environ.get('AWS_ACCESS_KEY_ID', '') # set Your AWS key
AWS_SECRET_ACCESS_KEY = os.environ.get('AWS_SECRET_ACCESS_KEY', '') # set Your AWS secret key
AWS_REGION_NAME = os.environ.get('AWS_REGION_NAME', '') # set Your AWS region

DYNAMODB_SESSIONS_TABLE_NAME = '' # set Your sessions table name

Set your session backend to:

SESSION_ENGINE = 'dynamodb_sessions.backends.cached_dynamodb'

or:

SESSION_ENGINE = 'dynamodb_sessions.backends.dynamodb'

Optional you can set always consistent parametr. If you are not using cache to this sessions backend you can force all reads from Dynamodb by setting True. Default: False:

DYNAMODB_SESSIONS_ALWAYS_CONSISTENT = False

Versions

System Message: WARNING/2 (<string>, line 66)

Title underline too short.

Versions
-------
0.1
  • Initial release.
0.3
  • Added removing expired sessions command management.
0.2
  • Added new version of boto to requirements

License

django-dynamodb2-sessions is licensed under the BSD License.

Subscribe to package updates

Last updated Jan 9th, 2014

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.