ADMIN_MEDIA_PREFIX in settings deprecated with Django 1.4.
Since Django 1.4, the app django.contrib.admin respects the conventions for static files included in apps managed by django.contrib.staticfiles. See https://docs.djangoproject.com/en/dev/releases/1.4/ for details.
This commit is contained in:
parent
e9c36735ed
commit
a3ee9ce3c0
|
@ -66,11 +66,6 @@ MEDIA_ROOT = os.path.join(_PROJECT_PATH, 'media')
|
|||
STATIC_ROOT = os.path.join(_PROJECT_PATH, 'static')
|
||||
STATIC_URL = '/static/'
|
||||
|
||||
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
|
||||
# trailing slash.
|
||||
# Examples: "http://foo.com/media/", "/media/".
|
||||
ADMIN_MEDIA_PREFIX = '/static/admin/'
|
||||
|
||||
# Make this unique, and don't share it with anybody.
|
||||
SECRET_KEY = '0!=(1kc6kri-ui+tmj@mr+*0bvj!(p*r0duu2n=)7@!p=pvf9n'
|
||||
|
||||
|
|
Loading…
Reference in New Issue