This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import asyncio | |
import json | |
import logging | |
from asyncio.futures import Future | |
from copy import deepcopy | |
from typing import Optional | |
from urllib.parse import unquote, urlparse, urlencode, parse_qsl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django import template | |
register = template.Library() | |
def render_include_once(self, context): | |
ctname = '_include_once_node_registry' | |
if ctname not in context: | |
context[ctname] = {} | |