mirror of
https://github.com/kennethreitz-archive/richtext.org.git
synced 2026-06-17 13:40:57 +00:00
14 lines
313 B
Python
14 lines
313 B
Python
from django.contrib.staticfiles.storage import staticfiles_storage
|
||
from django.urls import reverse
|
||
from jinja2 import Environment
|
||
|
||
|
||
def environment(**options):
|
||
env = Environment(**options)
|
||
|
||
env.globals.update({
|
||
‘static’: staticfiles_storage.url,
|
||
‘url’: reverse,
|
||
})
|
||
|
||
return env |