diff --git a/django/conf/project_template/project_name/settings.py b/django/conf/project_template/project_name/settings.py index 2afac2c1a8..827822e1ff 100644 --- a/django/conf/project_template/project_name/settings.py +++ b/django/conf/project_template/project_name/settings.py @@ -1,6 +1,8 @@ """ Django settings for {{ project_name }} project. +Generated by 'django-admin startproject' using Django {{ django_version }}. + For more information on this file, see https://docs.djangoproject.com/en/{{ docs_version }}/topics/settings/ diff --git a/django/core/management/templates.py b/django/core/management/templates.py index d088ca974a..b67a1b1fb2 100644 --- a/django/core/management/templates.py +++ b/django/core/management/templates.py @@ -109,6 +109,7 @@ class TemplateCommand(BaseCommand): base_name: name, base_directory: top_dir, 'docs_version': docs_version, + 'django_version': django.__version__, }), autoescape=False) # Setup a stub settings environment for template rendering