django1/django/contrib/staticfiles/context_processors.py

8 lines
173 B
Python

from django.conf import settings
def staticfiles(request):
return {
'STATICFILES_URL': settings.STATICFILES_URL,
'MEDIA_URL': settings.MEDIA_URL,
}