mirror of https://github.com/django/django.git
Fixed #20632 -- Fixed {{ docs_version }} in project template
This commit is contained in:
parent
18e79f1425
commit
fdbcbb9ebd
|
@ -105,7 +105,7 @@ class TemplateCommand(BaseCommand):
|
||||||
base_name = '%s_name' % app_or_project
|
base_name = '%s_name' % app_or_project
|
||||||
base_subdir = '%s_template' % app_or_project
|
base_subdir = '%s_template' % app_or_project
|
||||||
base_directory = '%s_directory' % app_or_project
|
base_directory = '%s_directory' % app_or_project
|
||||||
if django.VERSION[-1] == 0:
|
if django.VERSION[-2] != 'final':
|
||||||
docs_version = 'dev'
|
docs_version = 'dev'
|
||||||
else:
|
else:
|
||||||
docs_version = '%d.%d' % django.VERSION[:2]
|
docs_version = '%d.%d' % django.VERSION[:2]
|
||||||
|
|
Loading…
Reference in New Issue