diff --git a/djinit/templates/app/admin.j2 b/djinit/templates/app/admin.j2 index 8c38f3f..dc9bfc6 100644 --- a/djinit/templates/app/admin.j2 +++ b/djinit/templates/app/admin.j2 @@ -1,3 +1,5 @@ +"""generated with djinit""" + from django.contrib import admin # Register your models here. diff --git a/djinit/templates/app/apps.j2 b/djinit/templates/app/apps.j2 index 891c804..bc3adcc 100644 --- a/djinit/templates/app/apps.j2 +++ b/djinit/templates/app/apps.j2 @@ -1,3 +1,5 @@ +"""generated with djinit""" + from django.apps import AppConfig diff --git a/djinit/templates/app/models.j2 b/djinit/templates/app/models.j2 index 71a8362..980c8e5 100644 --- a/djinit/templates/app/models.j2 +++ b/djinit/templates/app/models.j2 @@ -1,3 +1,5 @@ +"""generated with djinit""" + from django.db import models # Create your models here. diff --git a/djinit/templates/app/routes.j2 b/djinit/templates/app/routes.j2 index c6ea465..3831c00 100644 --- a/djinit/templates/app/routes.j2 +++ b/djinit/templates/app/routes.j2 @@ -1,4 +1,6 @@ """ +generated with djinit + API routes for {{ app_name }} app. """ diff --git a/djinit/templates/app/serializers.j2 b/djinit/templates/app/serializers.j2 index 7cf7f1a..e4b115d 100644 --- a/djinit/templates/app/serializers.j2 +++ b/djinit/templates/app/serializers.j2 @@ -1,5 +1,6 @@ """ -Serializers for {{ app_name }} app. +generated with djinit +serializers for {{ app_name }} app. """ from rest_framework import serializers diff --git a/djinit/templates/app/tests.j2 b/djinit/templates/app/tests.j2 index 7ce503c..7fdd344 100644 --- a/djinit/templates/app/tests.j2 +++ b/djinit/templates/app/tests.j2 @@ -1,3 +1,5 @@ +"""generated with djinit""" + from django.test import TestCase # Create your tests here. diff --git a/djinit/templates/app/urls.j2 b/djinit/templates/app/urls.j2 index a31f082..501e65a 100644 --- a/djinit/templates/app/urls.j2 +++ b/djinit/templates/app/urls.j2 @@ -1,3 +1,5 @@ +"""generated with djinit""" + from django.urls import path from . import views diff --git a/djinit/templates/app/views.j2 b/djinit/templates/app/views.j2 index 91ea44a..7df6a0d 100644 --- a/djinit/templates/app/views.j2 +++ b/djinit/templates/app/views.j2 @@ -1,3 +1,5 @@ +"""generated with djinit""" + from django.shortcuts import render # Create your views here. diff --git a/djinit/templates/project/asgi.j2 b/djinit/templates/project/asgi.j2 index 6380cd7..03b888c 100644 --- a/djinit/templates/project/asgi.j2 +++ b/djinit/templates/project/asgi.j2 @@ -1,3 +1,5 @@ +"""generated with djinit""" + import os from dotenv import load_dotenv from django.core.asgi import get_asgi_application diff --git a/djinit/templates/project/manage_py.j2 b/djinit/templates/project/manage_py.j2 index a616ada..422a555 100644 --- a/djinit/templates/project/manage_py.j2 +++ b/djinit/templates/project/manage_py.j2 @@ -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 diff --git a/djinit/templates/project/project_urls.j2 b/djinit/templates/project/project_urls.j2 index 7395a4a..87da515 100644 --- a/djinit/templates/project/project_urls.j2 +++ b/djinit/templates/project/project_urls.j2 @@ -1,3 +1,5 @@ +"""generated with djinit""" + from django.contrib import admin from django.urls import path, include from django.conf import settings diff --git a/djinit/templates/project/settings_base.j2 b/djinit/templates/project/settings_base.j2 index 63cc238..d711d08 100644 --- a/djinit/templates/project/settings_base.j2 +++ b/djinit/templates/project/settings_base.j2 @@ -1,4 +1,5 @@ """ +generated with djinit Common settings shared between development and production environment """ diff --git a/djinit/templates/project/settings_development.j2 b/djinit/templates/project/settings_development.j2 index cb5aa6e..4761347 100644 --- a/djinit/templates/project/settings_development.j2 +++ b/djinit/templates/project/settings_development.j2 @@ -1,3 +1,5 @@ +"""generated with djinit""" + from .base import * SECRET_KEY = "{{ secret_key }}" diff --git a/djinit/templates/project/settings_production.j2 b/djinit/templates/project/settings_production.j2 index 6d45aa1..d85ba12 100644 --- a/djinit/templates/project/settings_production.j2 +++ b/djinit/templates/project/settings_production.j2 @@ -1,3 +1,5 @@ +"""generated with djinit""" + from .base import * import os import dj_database_url diff --git a/djinit/templates/project/urls.j2 b/djinit/templates/project/urls.j2 index 011b908..ab41ddb 100644 --- a/djinit/templates/project/urls.j2 +++ b/djinit/templates/project/urls.j2 @@ -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 diff --git a/djinit/templates/project/wsgi.j2 b/djinit/templates/project/wsgi.j2 index d414bb0..fa32c6a 100644 --- a/djinit/templates/project/wsgi.j2 +++ b/djinit/templates/project/wsgi.j2 @@ -1,3 +1,5 @@ +"""generated with djinit""" + import os from dotenv import load_dotenv from django.core.wsgi import get_wsgi_application diff --git a/djinit/templates/shared/gitignore.j2 b/djinit/templates/shared/gitignore.j2 index 51c5a35..2b5243c 100644 --- a/djinit/templates/shared/gitignore.j2 +++ b/djinit/templates/shared/gitignore.j2 @@ -1,3 +1,7 @@ +#--------------------------------------------------# +# The following was generated by djinit: # +#--------------------------------------------------# + # Python *.py[cod] *$py.class diff --git a/djinit/templates/shared/requirements.j2 b/djinit/templates/shared/requirements.j2 index 235b528..5eac586 100644 --- a/djinit/templates/shared/requirements.j2 +++ b/djinit/templates/shared/requirements.j2 @@ -1,3 +1,7 @@ +#--------------------------------------------------# +# The following was generated by djinit: # +#--------------------------------------------------# + Django python-dotenv django-jazzmin