Browse Source

Fixed #29250 -- Added 'django_version' context to startapp/project docs.

Graham Ullrich 7 years ago
parent
commit
ee7f51c66d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      docs/ref/django-admin.txt

+ 2 - 0
docs/ref/django-admin.txt

@@ -1198,6 +1198,7 @@ files is:
 - ``app_directory`` -- the full path of the newly created app
 - ``camel_case_app_name`` -- the app name in camel case format
 - ``docs_version`` -- the version of the documentation: ``'dev'`` or ``'1.x'``
+- ``django_version`` -- the version of Django, e.g.``'2.0.3'``
 
 .. _render_warning:
 
@@ -1267,6 +1268,7 @@ The :class:`template context <django.template.Context>` used is:
 - ``project_directory`` -- the full path of the newly created project
 - ``secret_key`` -- a random key for the :setting:`SECRET_KEY` setting
 - ``docs_version`` -- the version of the documentation: ``'dev'`` or ``'1.x'``
+- ``django_version`` -- the version of Django, e.g.``'2.0.3'``
 
 Please also see the :ref:`rendering warning <render_warning>` as mentioned
 for :djadmin:`startapp`.