Skip to content

afrosimon/django-gae-backends

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A collection a django backends for the Google App Engine

Features:
- memcache/datastore session backend
- email backend
- cache backend
- rdbms for migrations

TODO:
- file storage base in the Google Cloud Storage

Setup
=====
Add to the settings.py the following lines to install the backends:

SESSION_ENGINE = "gae_backends.sessions.cached_db"
EMAIL_BACKEND = "gae_backends.mail.EmailBackend"
CACHES = {
    'default': {
        'BACKEND': 'gae_backends.memcache.MemcacheCache',
    }
}

if os.getenv('SETTINGS_MODE') == 'prod':
    # Running in development, but want to access the Google Cloud SQL instance
    # in production.
    DATABASES = {
        'default': {
            'ENGINE': 'gae_backends.rdbms',
            'INSTANCE': 'your_instance:your_db',
            'NAME': '....',
            'USER': '....',
            'OPTIONS': {
                'init_command': 'SET storage_engine=INNODB',
            }
        }
    }

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%