mirror of
https://github.com/django/django.git
synced 2025-05-07 23:46:30 +00:00
Refs #30160 -- Simplified archive extension map and added other aliases.
This commit is contained in:
parent
e3fc9af4ab
commit
69a30f620e
@ -216,11 +216,9 @@ class ZipArchive(BaseArchive):
|
|||||||
self._archive.close()
|
self._archive.close()
|
||||||
|
|
||||||
|
|
||||||
extension_map = {
|
extension_map = dict.fromkeys((
|
||||||
'.tar': TarArchive,
|
'.tar',
|
||||||
'.tar.bz2': TarArchive,
|
'.tar.bz2', '.tbz2', '.tbz', '.tz2',
|
||||||
'.tar.gz': TarArchive,
|
'.tar.gz', '.tgz', '.taz',
|
||||||
'.tgz': TarArchive,
|
), TarArchive)
|
||||||
'.tz2': TarArchive,
|
extension_map['.zip'] = ZipArchive
|
||||||
'.zip': ZipArchive,
|
|
||||||
}
|
|
||||||
|
@ -1222,7 +1222,7 @@ For example::
|
|||||||
.. django-admin-option:: --template TEMPLATE
|
.. django-admin-option:: --template TEMPLATE
|
||||||
|
|
||||||
Provides the path to a directory with a custom app template file or a path to a
|
Provides the path to a directory with a custom app template file or a path to a
|
||||||
compressed file (``.tar.gz``, ``.tar.bz2``, ``.tgz``, ``.tbz``, ``.zip``)
|
compressed file (``.tar.gz``, ``.tar.bz2``, ``.tgz``, ``.tbz2``, ``.zip``)
|
||||||
containing the app template files.
|
containing the app template files.
|
||||||
|
|
||||||
For example, this would look for an app template in the given directory when
|
For example, this would look for an app template in the given directory when
|
||||||
|
Loading…
x
Reference in New Issue
Block a user