全部博文(2065)
分类: Python/Ruby
2009-08-05 15:17:13
在你的Django应用程序中,从对象 django.conf.settings 导入settings使用,例如:
from django.conf import settings
if settings.DEBUG:
# Do something
默认 : '/media/'
This setting is the URL prefix for admin media: CSS, JavaScript, and images. Make sure to use a trailing slash.