From 4c123d0f79b3f417ec5b030c616365882e734a1e Mon Sep 17 00:00:00 2001 From: Martin Blech Date: Mon, 24 Nov 2014 16:11:55 -0300 Subject: [PATCH] Fixed #23899 -- Added 'Generated by Django X.Y' to startproject template. --- django/conf/project_template/project_name/settings.py | 2 ++ django/core/management/templates.py | 1 + 2 files changed, 3 insertions(+) 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