Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

A Django backend for the Toga widget toolkit.

This package isn’t much use by itself; it needs to be combined with the core Toga library and the Toga Web library.

For more details, see the Toga project on Github.

Prerequisites

This backend requires Django 3.0 as a minimum requirement.

Usage

Toga Django defines a TogaApp class that can be used to mount a Toga Web instance in a Django app. If you have Toga application named myapp, Django deployment is acheived by putting the following into your project’s urls.py:

from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path

from toga_django import TogaApp

from tutorial import app

urlpatterns = [
    path('admin/', admin.site.urls),
    path('/', TogaApp(app).urls),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)

This will mount the Toga app at /, the Django admin at /admin, and serve static content in debug mode. You can mount the app at any URL you wish, and you can also add other routes for other views.

The app can then be executed with:

$ ./manage.py runserver

This assumes a standard Toga app layout, where the application myapp has a submodule app.py that defines a main() method.

Community

Toga is part of the BeeWare suite. You can talk to the community through:

Contributing

If you experience problems with this backend, log them on GitHub. If you want to contribute code, please fork the code and submit a pull request.

Metadata

Release files for toga-django 0.3.0.dev32

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

Source distribution (sdist)

Source distribution for toga-django 0.3.0.dev32
File Size Uploaded Provenance Actions
toga-django-0.3.0.dev32.tar.gz 5.0 kB Without provenance Details for toga-django-0.3.0.dev32.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for toga-django 0.3.0.dev32
File Interpreter ABI Platform Actions
toga_django-0.3.0.dev32-py3-none-any.whl Python 3 none any Details for toga_django-0.3.0.dev32-py3-none-any.whl

Total release size: 9.4 kB

Release files / toga-django-0.3.0.dev32.tar.gz

Download URL toga-django-0.3.0.dev32.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b491be0540ef2fd94052ad5c8d780c1b967b014109b169d34ca224f1aa07abbf
BLAKE2b-256 checksum
How to use checksums
b3b016b10dc2c1b790dc1662f5a85a5ec015ad97fd077d0ce992a33c6eede258
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

Release files / toga_django-0.3.0.dev32-py3-none-any.whl

Download URL toga_django-0.3.0.dev32-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
58ff64b658723de2de0b8477c9dc9e49d1470ac13cd2a268659668e33bfd41d6
BLAKE2b-256 checksum
How to use checksums
c99bb5104b38977b28bfc3888c683e86a0cd2a4220a744cbd1f176845a4c9320
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

Security for toga-django 0.3.0.dev32

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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