Skip to main content
https://badge.fury.io/py/django-appengine-toolkit.png https://travis-ci.org/masci/django-appengine-toolkit.png?branch=master https://pypip.in/d/django-appengine-toolkit/badge.png

Appengine Toolkit pimps Django with some utilities which help deploying projects on Google App Engine with Google Cloud SQL as data backend.

Features

  • collects project dependencies symlinking needed modules and packages and configuring App Engine environment

  • configures DATABASE setting parsing connection strings similar to those on Heroku

Documentation

The full documentation is at http://django-appengine-toolkit.rtfd.org.

Quickstart

Install appengine-toolkit:

pip install django-appengine-toolkit

Add it to the installed apps:

INSTALLED_APPS = (
    # ...
    'appengine_toolkit',
)

To automatically configure database settings reading connection string from the DATABASE_URL enviroment var:

import appengine_toolkit
DATABASES = {
    'default': appengine_toolkit.config(),
}

You can set DATABASE_URL directly in your app.yaml file:

env_variables:
  DJANGO_SETTINGS_MODULE: 'myapp.settings'
  DATABASE_URL: 'mysql://root@project_id:instance_id/database_name'

To collect project dependencies, first configure Appengine Toolkit in your settings file, specifying the full path to your app.yaml file:

APPENGINE_TOOLKIT = {
    'APP_YAML': os.path.join(BASE_DIR, '../../', 'app.yaml'),
}

…then run the command collectdeps specifying the requirement file containing the list of packages needed by your project to run:

python manage.py collectdeps -r my_requirements.txt

a folder named libs will be created on your application root (i.e. the same folder where the YAML file resides) containing symlinks needed by App Engine to include dependencies in the production runtime enviroment.

A file appengine_config.py will be created in the same folder and will contain code needed to configure the environment. If you need to customize the module appengine_config tell the command to not overwrite it - the command will then output the code you need to paste inside the module to complete the configuration process

History

0.1.0 (2013-11-30)

  • First release on PyPI.

Release files for django-appengine-toolkit 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-appengine-toolkit 0.1.1
File Size Uploaded
django-appengine-toolkit-0.1.1.tar.gz 8.8 kB Details

Release files / django-appengine-toolkit-0.1.1.tar.gz

Download URL django-appengine-toolkit-0.1.1.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
89592e42f525209c21b1b2daa05417cc671294bdaec41572b4dbc0c6d239d82d
BLAKE2b-256 checksum
How to use checksums
fd0cf865ef052e3e38d98439a63bc2b25053de30d8054c661edb14c5cc492033
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.2.1

1 release file

0.2.0

1 release file

0.1.2

1 release file

This release

0.1.1 This release

1 release file

0.1.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page