summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--django/conf/project_template/project_name/settings.py-tpl2
-rw-r--r--docs/releases/4.0.txt4
2 files changed, 5 insertions, 1 deletions
diff --git a/django/conf/project_template/project_name/settings.py-tpl b/django/conf/project_template/project_name/settings.py-tpl
index 7830fb2f3c..e949752df4 100644
--- a/django/conf/project_template/project_name/settings.py-tpl
+++ b/django/conf/project_template/project_name/settings.py-tpl
@@ -117,7 +117,7 @@ USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/{{ docs_version }}/howto/static-files/
-STATIC_URL = '/static/'
+STATIC_URL = 'static/'
# Default primary key field type
# https://docs.djangoproject.com/en/{{ docs_version }}/ref/settings/#default-auto-field
diff --git a/docs/releases/4.0.txt b/docs/releases/4.0.txt
index 94782e891f..37783b906b 100644
--- a/docs/releases/4.0.txt
+++ b/docs/releases/4.0.txt
@@ -258,6 +258,10 @@ Miscellaneous
* Support for ``cx_Oracle`` < 7.0 is removed.
+* Starting with 4.0, new projects are generated with :setting:`STATIC_URL` set
+ to the relative path ``'static/'``. This allows for the ``SCRIPT_NAME`` to be
+ prepended as necessary.
+
.. _deprecated-features-4.0:
Features deprecated in 4.0