Django microSYS (System Integration Service) - Multilingual Django Starter Pack, Packed with Features.
Project description
Django microSYS - System Integration Service
microSYS is a multilingual Django app that gives a project-level system layer for user management, branding, translations, scopes, navigation, activity logging, guided onboarding, data export, and dynamic CRUD tooling. It is not just a themed admin shell: it is a fairly large internal-systems toolkit that bundles runtime configuration, user operations, auditability, UI infrastructure, and zero-boilerplate management patterns into one package. The package keeps the landing README short, You can view the long-form operating and integration guidance at docs/.
What microSYS gives you
- A first-launch setup wizard at
/sys/setup/for identity, explicit language catalog management, translation-matrix overrides, access/security toggles, themes, default table density, global home URL, and sidebar structure, including runtime sidebar-toolbar and user-reordering controls. - A runtime system UI for users and superusers, including Options, user management, profiles, 2FA, activity logs, scopes, and system settings.
- A database-backed
SystemSettingssingleton layered overMICROSYS_CONFIG, so projects can seed defaults in code and refine them in the UI later. - A framework-owned
django_tables2platform that auto-adopts stock tables, ships built-in pagination and per-page controls, exposes a publicMicrosysTablebase class, and supports per-tablemicrosys_table,microsys_density,microsys_per_page, andmicrosys_actionsoverrides. - A
ScopedModelbase with audit fields, soft-delete behavior, actor tracking, filtered managers, and automatic scope handling. - Zero-boilerplate sections and dynamic modal CRUD flows for auxiliary models, plus a reusable context-menu/event model for richer interactions.
- A built-in audit trail with signal-based logging, merged User/Profile updates, diff capture, masked sensitive fields, and download/export log entries.
- Universal data helpers such as
fetch_file,fetch_excel, sticky-form autofill, tutorial overlays, and persistent UI preferences.
Requirements
note: all the requirements will be installed automatically when you install django-microsys.
- Python 3.11+
- Django 5.1+
django-crispy-formscrispy-bootstrap5django-tables2django-filterpillow"for image handling"babel"for translations"psutil"for system monitoring"pyotp"for TOTP 2FA"qrcode"for TOTP 2FA QR codes"
Installation
pip install django-microsys
# OR
pip install git+https://github.com/debeski/django-microsys.git
Scaffold a New Project or App
python -m microsys startproject myproject
cd myproject
python -m microsys startapp billing --register
python -m microsys startproject creates a new Django project already wired for MicroSys. python -m microsys startapp creates a MicroSys-native app skeleton with models, forms, filters, tables, translations, templates, tests, and optional project registration.
Generated projects also include a baseline Docker stack with compose.yml, compose.dev.yml, a config/celery.py worker entrypoint, and a /health/ endpoint via django-health-check.
They also generate .secrets/.env with the bootstrap secrets used by the standard decrypter/startup flow.
The scaffolded settings baseline now also includes django-cors-headers and django-csp with their apps, middleware, and starter CORS/CSP policy settings.
Minimal Quick Start
- Add the MicroSys helper at the end of your project
settings.py.
from microsys.utils import microsys_settings
microsys_settings(globals())
That helper prepends the required apps, inserts django.middleware.locale.LocaleMiddleware and microsys.middleware.ActivityLogMiddleware in the supported order, adds the Microsys context processor, sets the Crispy Bootstrap 5 defaults, adds a Bootstrap-friendly MESSAGE_TAGS error mapping, and seeds the standard MicroSys runtime defaults for language, timezone, i18n/tz flags, FORMAT_MODULE_PATH, and charset unless your project already defines them.
Proceed to Getting Started if you prefer to wire everything manually.
- Mount
microsys.urlsat project root so the bundled auth and system routes stay at/accounts/...and/sys/....
from django.urls import include, path
urlpatterns = [
path("", include("microsys.urls")),
]
With that root include in place, microsys provides /accounts/... and /sys/.... If your project does not define its own / view, microsys falls back from an unresolved / request into its login/setup flow instead of leaving a 404. On a fresh and unconfigured install, Microsys also guards ordinary anonymous requests so a public root page cannot bypass first-time setup; once setup is complete, your existing root view continues to behave normally.
- Run the setup command.
python manage.py microsys_setup
- Sign in as a superuser and complete the first-launch wizard at
/sys/setup/. On a fresh install, an anonymous request may be sent through/sys/setup/and then to login before the wizard can be completed. After setup, the main runtime UI lives underuser_hub.
For a fuller setup path, prefix-mount guidance, and first-launch expectations, use the Getting Started guide.
Key Capabilities
- Onboarding and runtime configuration: first-launch setup wizard, Options view, runtime System Settings modal, source-tabbed translation overrides, setup import/export, language/theme defaults, and a global Home destination.
- User and security operations: interactive user wizard, grouped translated permissions, three-tier staff authorization (superuser, Global Staff, Central Staff, Scoped Staff), profile management, multiple 2FA flows, backup codes, and runtime preference persistence.
- Generic CRUD infrastructure: dynamic sections, AJAX-driven modal CRUD, automatic form/table/filter discovery, context-menu actions, and reusable event dispatch.
- Navigation and UI infrastructure: resolver-driven sidebar builder, runtime tree rendering, optional user-level reordering, configurable sidebar toolbar visibility, a shared theme registry, tutorial overlays, theme-aware system surfaces, and template injection hooks.
- Data movement and productivity helpers: universal file download, Excel export, smart autofill, sticky-form cloning, and generic list/filter helpers.
- Audit and governance: signal-based activity logging, diff capture, masked sensitive fields, deduplicated entries, download/export logging, and scoped visibility.
- Framework-level automation: translation patches, scoped-model auto-injection, actor tracking, soft-delete, and config layering across defaults, project settings, and runtime UI.
Documentation
- Documentation Hub
- Getting Started
- Admin Guide
- Developer Guide
- Customization Guide
- Reference
- Features — complete feature inventory
- Changelog
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 Distribution
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_microsys-2.0.2.tar.gz.
File metadata
- Download URL: django_microsys-2.0.2.tar.gz
- Upload date:
- Size: 2.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f7e7349ca1037d7864e2bbf0721531eeb24ce8204a3ead03b2d6288ea73bdb9
|
|
| MD5 |
bb750185b054bd978df09968d45b4e50
|
|
| BLAKE2b-256 |
5fc4cf70b191e1408b30c92610eb8649c8fda4eef0d93b25102f80472138167c
|
File details
Details for the file django_microsys-2.0.2-py3-none-any.whl.
File metadata
- Download URL: django_microsys-2.0.2-py3-none-any.whl
- Upload date:
- Size: 2.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1ae858220425952a6359fc90d2510eb5c9cae443fad21fc1103022ddc16d442
|
|
| MD5 |
65b913366cdd86978148215195fec071
|
|
| BLAKE2b-256 |
c5c6f4c50e5eea3d7c9be31d2875f3d36a4c6bc3d8ff34862d868a04b1a6b055
|