UNKNOWN
Project description
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',
}
}
}
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',
}
}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django-gae-backends-1.0.tar.gz
.
File metadata
- Download URL: django-gae-backends-1.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5a648c82127bdf03280c3541a03f27c7318f8ae6caef8af631db5270960a794 |
|
MD5 | d854f2fcda147242844009c87ab854ce |
|
BLAKE2b-256 | a19008788ba5173794d42ab9b7a0e3b62523c4ba373ee376703ebdf2db735e05 |
File details
Details for the file django_gae_backends-1.0-py2-none-any.whl
.
File metadata
- Download URL: django_gae_backends-1.0-py2-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81a8ffa12909ae9fd8b8f8cb764cbadc2dd2fbd0e3852d9276a6d167a5bef87f |
|
MD5 | 5a92903c04e9ac19b59316773e96ce15 |
|
BLAKE2b-256 | 7a38cad8e6580e81e3409a6d671559319b8b51baf48942cd1d3f0b45378b1a61 |