toga-django 0.3.0.dev27
pip install toga-django==0.3.0.dev27
Released:
A Django backend for the Toga widget toolkit.
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD License (New BSD)
- Author: Russell Keith-Magee
- Maintainer: BeeWare Team
- Tags gui, widget, cross-platform, toga, web, django
- Requires: Python >=3.6
Classifiers
- Development Status
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Project description
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:
The beeware/general channel on Gitter.
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.
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD License (New BSD)
- Author: Russell Keith-Magee
- Maintainer: BeeWare Team
- Tags gui, widget, cross-platform, toga, web, django
- Requires: Python >=3.6
Classifiers
- Development Status
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
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 toga-django-0.3.0.dev27.tar.gz
.
File metadata
- Download URL: toga-django-0.3.0.dev27.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d07987b01e71c201de94a5847483f22c15f5794a82bd4a8deb30eb26da9a6c40 |
|
MD5 | d2fd83326c9e89baa7070ea29ae42709 |
|
BLAKE2b-256 | e7c861108bf6d4e150a7189e67d3b2422323c35365ebae79e897fb139a947418 |
File details
Details for the file toga_django-0.3.0.dev27-py3-none-any.whl
.
File metadata
- Download URL: toga_django-0.3.0.dev27-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24406729e13ba20f33a240b05e1dd5f617b4a4a2d3002d88e785e543d68c589c |
|
MD5 | bfd918cd8d30a6cf126df21a4d72d0e7 |
|
BLAKE2b-256 | 37d23e167f82a1f2e801aee924d33f9921d4ddeac02feebac3dd5d4803bb77af |