Fixing new STATIC_URL setting to work and be backwards compatible with Django versions before 1.4.
This commit is contained in:
parent
c67b949a4e
commit
e6aab74ee2
1 changed files with 4 additions and 3 deletions
|
|
@ -382,9 +382,10 @@ LOGOUT_URL = '/accounts/login'
|
||||||
# Example: "http://media.lawrence.com"
|
# Example: "http://media.lawrence.com"
|
||||||
MEDIA_URL = '/media/'
|
MEDIA_URL = '/media/'
|
||||||
# URL prefix for admin media -- CSS, JavaScript and images. Make sure
|
# URL prefix for admin media -- CSS, JavaScript and images. Make sure
|
||||||
# to use a trailing slash. This should match the position defined
|
# to use a trailing slash. Django1.4+ will look for admin files under
|
||||||
# by ADMIN_MEDIA_ROOT.
|
# STATIC_URL/admin.
|
||||||
STATIC_URL = '/media/admin/'
|
STATIC_URL = '/media/'
|
||||||
|
ADMIN_MEDIA_PREFIX = STATIC_URL + "admin/" # needed for backwards compatibility django < 1.4
|
||||||
# The name of the currently selected web template. This corresponds to the
|
# The name of the currently selected web template. This corresponds to the
|
||||||
# directory names shown in the webtemplates directory.
|
# directory names shown in the webtemplates directory.
|
||||||
ACTIVE_TEMPLATE = 'prosimii'
|
ACTIVE_TEMPLATE = 'prosimii'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue