This is a Django project template that provides a seamless implementation of django-ninja
, django-ninja-jwt
, and django-ninja-crud
. It's crafted to jump-start your Django project, ensuring a solid and efficient foundation with JWT authentication, CRUD operations, and more, all built on the powerful Django Ninja framework.
- π‘οΈ JWT Authentication (using
django-ninja-jwt
): Securely manage user authentication with JSON Web Tokens. - π CRUD Operations (using
django-ninja-crud
): Easily perform Create, Read, Update, and Delete operations. - ποΈ Soft Delete: Safely delete objects without losing the data, allowing for recovery.
- π°οΈ Simple History: Keep track of changes to models with historical records.
- π·οΈ Metadata Fields: Automatically manage metadata fields like
created_at
,updated_at
,created_by
,updated_by
, anddeleted_at
. - π₯ Built on Django Ninja (
django-ninja
): Enjoy the simplicity and speed of building APIs with Django Ninja.
django-ninja-crud-template/
β
βββ backend/ # Backend codebase
β βββ api/ # API app containing the main functionality
β β βββ models/ # --> Contains the database model definitions
β β βββ schemas/ # --> Houses the Pydantic schemas for API serialization
β β βββ services/ # --> Contains business logic separate from models and views
β β βββ utils/ # --> Utility functions and classes
β β βββ views/ # --> View functions and handlers for API requests
β β βββ api.py # --> Main file for API route definitions
β βββ manage.py # --> Django management script
β βββ yourproject/ # Main project configuration
β βββ settings.py # --> Project settings and configuration
β βββ urls.py # --> URL configuration for the project
β βββ wsgi.py # --> WSGI configuration for deployment
β
βββ frontend/ # Frontend codebase (if applicable)