toga/examples/positron-django
Malcolm Smith f52598c27e
Merge pull request #2363 from freakboy3742/examples-update
Update examples to explicitly list gradle dependencies.
2024-01-31 21:41:19 +00:00
..
src Bump black-pre-commit-mirror from 23.12.1 to 24.1.1 2024-01-28 20:29:16 +00:00
CHANGELOG Add content to CHANGELOG and LICENSE files for examples 2023-06-21 20:21:23 -04:00
LICENSE Add content to CHANGELOG and LICENSE files for examples 2023-06-21 20:21:23 -04:00
pyproject.toml Ensure appcompat library is specified, and normalize bundle IDs. 2024-01-30 11:46:30 +08:00
README.rst Add Positron examples. 2022-10-12 10:28:30 +08:00

Positron
========

This is an example of an Electron-style "web site as app" project.

It serves a Django site called ``webapp``, contained in ``src/webapp``. The
contents of this folder are a stock version of what is produced by
``django-admin.py startproject``, collapsed into a single directory.

Getting started
---------------

To set up a development environment::

    $ python -m venv venv
    $ ./venv/bin/activate
    (venv) $ pip install briefcase

To run Django management commands::

    PYTHONPATH=src python src/webapp/manage.py

To run in development mode::

    (venv) $ briefcase dev

To run as a packaged app::

    (venv) $ briefcase run