feat: scaffold initial Django project structure and configuration

This commit is contained in:
sankalp committed 2025-11-25 13:01:42 +05:45
1 parent 9edeeff1ac
commit 4dec888e17
89 files changed
+1373

No files matched your search

View File
Whitespace-only changes.
+5
View File
@@ -0,0 +1,5 @@
"""generated with djinit"""
from django.contrib import admin
# Register your models here.
+8
View File
@@ -0,0 +1,8 @@
"""generated with djinit"""
from django.apps import AppConfig
class ProjectsConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'projects'
Whitespace-only changes.
+5
View File
@@ -0,0 +1,5 @@
"""generated with djinit"""
from django.db import models
# Create your models here.
+18
View File
@@ -0,0 +1,18 @@
"""
generated with djinit
API routes for projects app.
"""
from rest_framework.routers import DefaultRouter
from . import views
# Create router instance
router = DefaultRouter()
# Register viewsets with router
# Example:
# router.register(r'projects', views.ProjectsViewSet)
# Get URL patterns
urlpatterns = router.urls
+14
View File
@@ -0,0 +1,14 @@
"""
generated with djinit
serializers for projects app.
"""
from rest_framework import serializers
# Add your serializers here
# Example:
# class ProjectsSerializer(serializers.ModelSerializer):
# class Meta:
# model = YourModel
# fields = '__all__'
+5
View File
@@ -0,0 +1,5 @@
"""generated with djinit"""
from django.test import TestCase
# Create your tests here.
+11
View File
@@ -0,0 +1,11 @@
"""generated with djinit"""
from django.urls import path
from . import views
app_name = 'projects'
urlpatterns = [
# Add your URL patterns here
# path('', views.index, name='index'),
]
+5
View File
@@ -0,0 +1,5 @@
"""generated with djinit"""
from django.shortcuts import render
# Create your views here.