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 forms | |
from django.utils.safestring import mark_safe | |
class DateTimeWidget(forms.DateTimeInput): | |
class Media: | |
css = { | |
"all": ("bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css",) | |
} | |
js = ("bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js") |
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 gzip import GzipFile | |
from io import BytesIO | |
import urllib2 | |
from uuid import uuid4 | |
import gdal | |
def open_http_query(url): | |
try: | |
request = urllib2.Request(url, |