A Django-based way to write desktop applications
Project description
======
Proton
======
Proton is a Django module for building desktop apps. It provides a management command
to run the project as a desktop application rather than a server, as well as some
basic starter templates for using various stylesheets.
Behind the scenes, this is done by running the server on an arbitrary high port
and opening a thin web browser pointing to localhost on that port.
Quick Start
-----------
1. Install dependencies:
Ubuntu: `apt-get install python-gi gir1.2-webkit-3.0 gir1.2-gtk-3.0
2. Add "proton" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
...
'proton',
]
3. Add the following values to your settings.py file:
WINDOW_TITLE = 'Title of window'
WINDOW_SIZE = (WIDTH, HEIGHT)
WINDOW_MAXIMIZE = False
WINDOW_SIZE is a tuple containing the default width and height of the window.
WINDOW_MAXIMIZE represents whether the window should be maximized by default.
4. Run `python manage.py window` to run the app locally using the dev server.
Proton
======
Proton is a Django module for building desktop apps. It provides a management command
to run the project as a desktop application rather than a server, as well as some
basic starter templates for using various stylesheets.
Behind the scenes, this is done by running the server on an arbitrary high port
and opening a thin web browser pointing to localhost on that port.
Quick Start
-----------
1. Install dependencies:
Ubuntu: `apt-get install python-gi gir1.2-webkit-3.0 gir1.2-gtk-3.0
2. Add "proton" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
...
'proton',
]
3. Add the following values to your settings.py file:
WINDOW_TITLE = 'Title of window'
WINDOW_SIZE = (WIDTH, HEIGHT)
WINDOW_MAXIMIZE = False
WINDOW_SIZE is a tuple containing the default width and height of the window.
WINDOW_MAXIMIZE represents whether the window should be maximized by default.
4. Run `python manage.py window` to run the app locally using the dev server.
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_proton-1.0.0-py2.py3-none-any.whl.
File metadata
- Download URL: django_proton-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 3.6 MB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29f2df9c6b9324bef2b56c6d86b3daa7831b435797b8e4884402c5df1eb79709
|
|
| MD5 |
43a00c5ffdca2ade3b275c3dc680f206
|
|
| BLAKE2b-256 |
f664e79d22f39f68f63f104244ffd645a097e18f381356c4229b9669c28bfe43
|