From abc0777b63057e2ff97eee2ff184356051e14c47 Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Sun, 24 Jan 2016 10:06:01 +0100 Subject: Fixed #25968 -- Changed project/app templates to use a "py-tpl" suffix. Debian packages unconditionally byte-compile .py files on installation and do not silence errors by design. Therefore, we need a way of shipping these invalid .py files without a .py extension but ensuring that when we template them, they end up as .py. We don't special-case .py files so that the all the TemplateCommand command-line options (eg. extra_files and extensions) still work entirely as expected and it may even be useful for other formats too. --- tests/admin_scripts/custom_templates/project_template/manage.py | 6 ------ tests/admin_scripts/custom_templates/project_template/manage.py-tpl | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) delete mode 100755 tests/admin_scripts/custom_templates/project_template/manage.py create mode 100755 tests/admin_scripts/custom_templates/project_template/manage.py-tpl (limited to 'tests/admin_scripts/custom_templates/project_template') diff --git a/tests/admin_scripts/custom_templates/project_template/manage.py b/tests/admin_scripts/custom_templates/project_template/manage.py deleted file mode 100755 index d9843c433f..0000000000 --- a/tests/admin_scripts/custom_templates/project_template/manage.py +++ /dev/null @@ -1,6 +0,0 @@ -# The manage.py of the {{ project_name }} test project - -# template context: -project_name = '{{ project_name }}' -project_directory = '{{ project_directory }}' -secret_key = '{{ secret_key }}' diff --git a/tests/admin_scripts/custom_templates/project_template/manage.py-tpl b/tests/admin_scripts/custom_templates/project_template/manage.py-tpl new file mode 100755 index 0000000000..d9843c433f --- /dev/null +++ b/tests/admin_scripts/custom_templates/project_template/manage.py-tpl @@ -0,0 +1,6 @@ +# The manage.py of the {{ project_name }} test project + +# template context: +project_name = '{{ project_name }}' +project_directory = '{{ project_directory }}' +secret_key = '{{ secret_key }}' -- cgit v1.3