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

Refs #25598 which added original support for relative STATIC_URL and
MEDIA_URL.
This commit is contained in:
Markus Holtermann 2021-01-29 15:14:21 +01:00 committed by Mariusz Felisiak
parent 63d239db03
commit 9d05add447
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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