Menu

JOPS Meets Django: Class-Based SPAs on a Python Backend
📰

JOPS Meets Django: Class-Based SPAs on a Python Backend

DEV Community: django·Arik Wald·4 days ago
#NFufw5A4
#devtodjango#devto#dev#details#jops
Reading 0:00
15s threshold

JOPS already runs in the browser, in hybrid mobile apps, inside Next.js and WordPress, and on the desktop with Electron. With jops-core 1.1.11 , it comes to the Python world: a JOPS single-page app can now run in a Django project, either as its own Django app or embedded in any Django template with a new {% jops %} template tag.

Django stays the backend: your models, views, APIs, sessions and admin. JOPS adds class-based views with an Android-style lifecycle for the screens that behave like an application, with no Node.js build step in your deployment.

JOPS also has a home of its own now: the JOPS website, jops.ui-db.com , launched with 1.1.10, has guides for every platform, the core concepts, the full API reference and examples. The Django guide is already there.

Why JOPS and Django fit

Django developers tend to think in classes: models, class-based views, forms, admin.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.