Create templates ================ A template is a directory with files that will be copied to the final path in your app. Template files can use `Django Templates Syntax `_. When templates are generated, the app models are available to be used with the django template syntax. For example if you create the template *mytemplate* you can use it for your app *myapp^with the command:: $ python manage.py generate mytemplate myapp Template locations ------------------ There are several places to locate the directories for your templates. The templates will be loaded in this order: #. Template directories in ``DJANGO_CODE_GENERATOR_TEMPLATES`` environment variable. The directories are separated by a colon char (``:``). For example: ``DJANGO_CODE_GENERATOR_TEMPLATES=/path/templates/``. #. Templates from the folder ``.dcg_templates/`` in the current directory. #. Template directories from ``DJANGO_CODE_GENERATOR_TEMPLATES = []`` list in your Django settings. #. Templates from folder ``.dcg_templates/`` in ``manage.py`` directory. #. Templates from ``~/.config/dcg_templates/`` directory. #. Templates from django_code_generator project To create the template, make a directory with the name of the template in the templates folder. For example: ``~/.config/dcg_templates/mytemplate/``. When you use the command ``manage.py generate