diff options
| author | Chris Lamb <chris@chris-lamb.co.uk> | 2016-01-24 10:06:01 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-01-25 12:39:06 -0500 |
| commit | abc0777b63057e2ff97eee2ff184356051e14c47 (patch) | |
| tree | 4b879db7e88d6bd5ce7f810d62d0dd287d493b9d /tests/admin_scripts | |
| parent | 9c43d8252a926f72be5a279186b42848501819b8 (diff) | |
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.
Diffstat (limited to 'tests/admin_scripts')
| -rwxr-xr-x | tests/admin_scripts/custom_templates/project_template/manage.py-tpl (renamed from tests/admin_scripts/custom_templates/project_template/manage.py) | 0 | ||||
| -rw-r--r-- | tests/admin_scripts/tests.py | 2 |
2 files changed, 1 insertions, 1 deletions
diff --git a/tests/admin_scripts/custom_templates/project_template/manage.py b/tests/admin_scripts/custom_templates/project_template/manage.py-tpl index d9843c433f..d9843c433f 100755 --- a/tests/admin_scripts/custom_templates/project_template/manage.py +++ b/tests/admin_scripts/custom_templates/project_template/manage.py-tpl diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py index 805be8b144..60c3a68fd2 100644 --- a/tests/admin_scripts/tests.py +++ b/tests/admin_scripts/tests.py @@ -181,7 +181,7 @@ class AdminScriptTestCase(unittest.TestCase): pass conf_dir = os.path.dirname(upath(conf.__file__)) - template_manage_py = os.path.join(conf_dir, 'project_template', 'manage.py') + template_manage_py = os.path.join(conf_dir, 'project_template', 'manage.py-tpl') test_manage_py = os.path.join(self.test_dir, 'manage.py') shutil.copyfile(template_manage_py, test_manage_py) |
