1. youngking
  2. djangobook-cn

Source

djangobook-cn / common / appenginepatch / mediautils / settings.py

1
2
3
4
5
from ragendja.settings_post import *
if not on_production_server and MEDIA_URL.startswith('/'):
    if ADMIN_MEDIA_PREFIX.startswith(MEDIA_URL):
        ADMIN_MEDIA_PREFIX = '/generated_media' + ADMIN_MEDIA_PREFIX
    MEDIA_URL = '/generated_media' + MEDIA_URL