How fjperezdev/djangouserscontrol works
Project type and purpose
• This is a Django-based REST API backend. There is no separate frontend in the repo; instead, the /api app implements endpoints (login, user CRUD) using Django REST Framework. The root folder contains Django project settings (backend/), app code (api/), infrastructure scripts (build.sh, render.yaml), and dependencies (requirements.txt).
File structure
• Top level
• manage.py – Django CLI entry point
• backend/ – Django project (ASGI/WSGI, settings, root URL config)
• api/ – Django app for all API logic
• render.yaml – Render.com deployment config
• build.sh – build script for CI/CD or containerization
• /api substructure follows a standard Django REST pattern:
• models/ – data definitions (e.g., users)
• serializers/ – translate between model instances and JSON
• views/ – view classes/functions handling HTTP logic
• permissions.py – custom access rules
• urls.py – app-level endpoint routing
• tests/ – unit tests (e.g., login)
• The backend/settings.py holds Django settings, including allowed hosts, middleware, installed apps (including rest_framework).