iamjazzar / django-mako

The first simple, elegant Django Mako library
https://www.ahmedjazzar.com
MIT License
18 stars 10 forks source link

Replace staticfiles storage url with the static templatetag #2

Closed iamjazzar closed 7 years ago

iamjazzar commented 7 years ago

This is addressing #1 suggestion of using

django.contrib.staticfiles.templatetags.staticfiles.static

instead of

django.contrib.staticfiles.storage.staticfiles_storage.url

Using template tag to build the URL for the given relative path makes it much easier when you I to switch to a content delivery network (CDN) for serving static files.