tags:

views:

14

answers:

2

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?

A: 

The files are in django/conf/app_template and django/conf/project_template for the app and project files respectively.

I don't think there is a ways to override this location without either creating your own startapp / startproject command or without modifying django/core/management/base.py.

WoLpH
ahhh, I looked at a bunch of templates in django but didn't check conf. Thanks.
iHeartDucks
A: 

You can copy your customized files instead of using the created ones without problem.

laurent-rpnet