feat: scaffold a basic Django project structure

This commit is contained in:
sankalp committed 2025-10-29 10:59:58 +05:45
1 parent 1a2e50900d
commit b78ba6d308
33 files changed
+856

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
"""
API routes for {{ app_name }} app.
"""
from rest_framework.routers import DefaultRouter
from . import views
# Create router instance
router = DefaultRouter()
# Register viewsets with router
# Example:
# router.register(r'{{ app_name }}', views.{{ app_name|title }}ViewSet)
# Get URL patterns
urlpatterns = router.urls
+13
View File
@@ -0,0 +1,13 @@
"""
Serializers for {{ app_name }} app.
"""
from rest_framework import serializers
# Add your serializers here
# Example:
# class {{ app_name|title }}Serializer(serializers.ModelSerializer):
# class Meta:
# model = YourModel
# fields = '__all__'