
Security News
Software Engineering Daily Podcast: Feross on AI, Open Source, and Supply Chain Risk
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.
django-nativemojo
Advanced tools
A REST framework for DJANGO with some extra apps that make it easy to provide a secure robust graph like RESIT API.
The Lightweight, Secure, and Extensible REST and Auth Framework for Django
Django-MOJO helps you rapidly build secure APIs and manage authentication in Django projects—without the usual boilerplate or complexity. It brings clarity and maintainability to your codebase, all while providing robust object-level security and powerful helper utilities for real-world development.
Create Django Models:
Inherit from MojoModel and define a RestMeta inner class to configure permissions, default filters, and output graphs.
Register REST Endpoints:
Use decorators (@md.URL, @md.GET, etc.) to expose catch-all or method-specific API endpoints in your app’s rest/ directory.
Embrace Helpers:
Leverage and extend the extensive helpers in mojo/helpers/ for logging, cron, request parsing, redis, and more.
Test with Confidence:
Write and run tests using MOJO’s integrated “testit” system—both for APIs and backend logic.
models/group.py
from django.db import models
from mojo.models import MojoModel
class Group(MojoModel):
name = models.CharField(max_length=200)
class RestMeta:
VIEW_PERMS = ["view_groups"]
SAVE_PERMS = ["manage_groups"]
LIST_DEFAULT_FILTERS = {"is_active": True}
GRAPHS = {
"default": {"fields": ["id", "name", "created"]},
}
rest/group.py
from mojo import decorators as md
from .models.group import Group
@md.URL('group')
@md.URL('group/<int:pk>')
def on_group(request, pk=None):
return Group.on_rest_request(request, pk)
Want details or examples? Dive into the docs:
We welcome pull requests and issues! Contributions should follow our Developer Guide and maintain the framework’s philosophy: keep it simple, explicit, and secure.
Licensed under the Apache License v2.0. See the LICENSE file for details.
FAQs
A REST framework for DJANGO with some extra apps that make it easy to provide a secure robust graph like RESIT API.
We found that django-nativemojo demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.

Security News
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.