A Django 6.1 and Django REST framework 3.18 CRUD API starter in Python 3.12 that stores one resource, items, in PostgreSQL through the Django ORM and psycopg 3, served by Gunicorn. It is for Python developers who want a model, a serializer and a ModelViewSet already wired up, with a migration, limit and offset paging, JSON errors, a database health check and tests.
by Light CloudCRUD APIs
The project is cut down to what a JSON API needs: INSTALLED_APPS holds only rest_framework and items, the middleware list is empty, and DRF renders and parses JSON only, so there is no admin, browsable API or template setup. config/exceptions.py reshapes every DRF error into a single error string, and config/wsgi.py applies migrations before Gunicorn takes traffic, so an unreachable database shows up at deploy time rather than on the first request. The first change is usually renaming Item or giving it your own fields, then running makemigrations and committing the migration. On Light Cloud the deploy runs gunicorn config.wsgi:application with 4 threads on the PORT the platform sets, with the DB_* variables filled in, and every push to your copy redeploys.
Press Deploy on this template's page: Light Cloud copies the repo into your GitHub account, creates a PostgreSQL database and sets DB_HOST, DB_NAME, DB_USER and DB_PASSWORD on the app. Databases need a paid plan.
Add it to Item in items/models.py and to fields in items/serializers.py, then run python manage.py makemigrations and commit the new migration. It is applied the next time the app starts, locally and on deploy.
Run python manage.py startapp things and give it a model, a serializer and a viewset modelled on items/. Add the app to INSTALLED_APPS in config/settings.py, include its urls in config/urls.py and run makemigrations.
No. It renders JSON only and DRF's browsable API is off. drf-spectacular adds an OpenAPI schema and Swagger UI, but it needs Django's TEMPLATES setting and django.contrib.staticfiles added to config/settings.py first.
Yes. Any host with Python 3.12 and a PostgreSQL database runs it: install requirements.txt, set the DB_* variables and start gunicorn config.wsgi:application --bind 0.0.0.0:$PORT. Migrations run on start, so there is no release step.

Start a Python CRUD API on PostgreSQL with FastAPI, live docs and pytest set up
Start a Flask CRUD API on PostgreSQL with blueprints, Gunicorn and pytest set up
Start a Flask JSON API with an app factory and a real WSGI server, not flask run