feat: add "generated with djinit" comment to template files

This commit is contained in:
sankalp committed 2025-11-03 01:08:21 +05:45
1 parent f45bacf682
commit 5da43ab3a5
18 files changed
+40 -16

No files matched your search

+2
View File
@@ -1,3 +1,5 @@
"""generated with djinit"""
from django.contrib import admin
# Register your models here.
+2
View File
@@ -1,3 +1,5 @@
"""generated with djinit"""
from django.apps import AppConfig
+2
View File
@@ -1,3 +1,5 @@
"""generated with djinit"""
from django.db import models
# Create your models here.
+2
View File
@@ -1,4 +1,6 @@
"""
generated with djinit
API routes for {{ app_name }} app.
"""
+2 -1
View File
@@ -1,5 +1,6 @@
"""
Serializers for {{ app_name }} app.
generated with djinit
serializers for {{ app_name }} app.
"""
from rest_framework import serializers
+2
View File
@@ -1,3 +1,5 @@
"""generated with djinit"""
from django.test import TestCase
# Create your tests here.
+2
View File
@@ -1,3 +1,5 @@
"""generated with djinit"""
from django.urls import path
from . import views
+2
View File
@@ -1,3 +1,5 @@
"""generated with djinit"""
from django.shortcuts import render
# Create your views here.
+2
View File
@@ -1,3 +1,5 @@
"""generated with djinit"""
import os
from dotenv import load_dotenv
from django.core.asgi import get_asgi_application
+4
View File
@@ -1,7 +1,11 @@
#!/usr/bin/env python
"""generated with djinit"""
"""Django's command-line utility for administrative tasks."""
import os
import sys
from dotenv import load_dotenv
+2
View File
@@ -1,3 +1,5 @@
"""generated with djinit"""
from django.contrib import admin
from django.urls import path, include
from django.conf import settings
@@ -1,4 +1,5 @@
"""
generated with djinit
Common settings shared between development and production environment
"""
@@ -1,3 +1,5 @@
"""generated with djinit"""
from .base import *
SECRET_KEY = "{{ secret_key }}"
@@ -1,3 +1,5 @@
"""generated with djinit"""
from .base import *
import os
import dj_database_url
+1 -15
View File
@@ -1,19 +1,5 @@
"""
URL configuration for {{ project_name }} project.
"""generated with djinit"""
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/{{ django_version }}/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
Including another URLconf
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
+2
View File
@@ -1,3 +1,5 @@
"""generated with djinit"""
import os
from dotenv import load_dotenv
from django.core.wsgi import get_wsgi_application
+4
View File
@@ -1,3 +1,7 @@
#--------------------------------------------------#
# The following was generated by djinit: #
#--------------------------------------------------#
# Python
*.py[cod]
*$py.class
+4
View File
@@ -1,3 +1,7 @@
#--------------------------------------------------#
# The following was generated by djinit: #
#--------------------------------------------------#
Django
python-dotenv
django-jazzmin