I would like to customize the files and folders created when running
python manage.py startapp appname
I find doing some things over and over again and I think it would be neat, if my customizations are present when I create a new app.
Do you know where I can customize the default files when an app is created?
Файлы находятся в django / conf / app_template
и django / conf / project_template
для файлов приложения и проекта соответственно.
Я не думаю, что есть способ изменить это местоположение без создания собственной команды startapp
/ startproject
или без изменения django / core / management / base .py
.
Вы можете без проблем копировать свои настроенные файлы вместо использования созданных.