Browse Source

Fixed #32394 -- Changed project template settings to use relative STATIC_URL.

Refs #25598 which added original support for relative STATIC_URL and
MEDIA_URL.
Markus Holtermann 4 years ago
parent
commit
9d05add447

+ 1 - 1
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

+ 4 - 0
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