Untitled

From anonymous, 1 Year ago, written in Python, viewed 58 times.
URL https://paste.codexterous.com/view/02336db7 Embed
Download Paste or View Raw
  1. from django.contrib.staticfiles.storage import staticfiles_storage
  2. from django.urls import reverse
  3. from jinja2 import Environment
  4.  
  5. def environment(**options):
  6.   env = Environment(**options)
  7.   env.globals.update({
  8.       'static': staticfiles_storage.url,
  9.       'url': reverse,
  10.   })
  11.   return env
  12.  

Reply to "Untitled"

Here you can reply to the paste above