Skip to content

Instantly share code, notes, and snippets.

View clichedmoog's full-sized avatar
😇

서명석(MS Seo) clichedmoog

😇
View GitHub Profile
@clichedmoog
clichedmoog / url_add_query.py
Created January 3, 2018 12:37 — forked from leonsmith/url_add_query.py
Django template tag to append a query string to a url
from urlparse import urlsplit, urlunsplit
from django import template
from django.http import QueryDict
register = template.Library()
@register.simple_tag
def url_add_query(url, **kwargs):
"""