Home > Q&A > body text
1.settings.py 中设置了STATIC_URL,那么在views文件中,可不可以拿到这个值?如果可以,怎么拿?
迷茫2017-04-17 17:32:53
from django.conf import settings def foo(request): print settings.STATIC_URL