mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
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.
This commit is contained in:
@@ -1017,7 +1017,7 @@ a Django application with this structure::
|
||||
``SyntaxError`` when installing Django setuptools 5.5.x
|
||||
-------------------------------------------------------
|
||||
|
||||
When installing Django 1.9+ with setuptools 5.5.x, you'll see::
|
||||
When installing Django 1.9 or 1.9.1 with setuptools 5.5.x, you'll see::
|
||||
|
||||
Compiling django/conf/app_template/apps.py ...
|
||||
File "django/conf/app_template/apps.py", line 4
|
||||
@@ -1034,7 +1034,8 @@ When installing Django 1.9+ with setuptools 5.5.x, you'll see::
|
||||
It's safe to ignore these errors (Django will still install just fine), but you
|
||||
can avoid them by upgrading setuptools to a more recent version. If you're
|
||||
using pip, you can upgrade pip using ``pip install -U pip`` which will also
|
||||
upgrade setuptools.
|
||||
upgrade setuptools. This is resolved in later versions of Django as described
|
||||
in the :doc:`/releases/1.9.2`.
|
||||
|
||||
Miscellaneous
|
||||
-------------
|
||||
|
||||
Reference in New Issue
Block a user