MCPcopy
hub / github.com/django/django / is_url

Method is_url

django/core/management/templates.py:383–388  ·  view source on GitHub ↗

Return True if the name looks like a URL.

(self, template)

Source from the content-addressed store, hash-verified

381 )
382
383 def is_url(self, template):
384 """Return True if the name looks like a URL."""
385 if ":" not in template:
386 return False
387 scheme = template.split(":", 1)[0].lower()
388 return scheme in self.url_schemes
389
390 def apply_umask(self, old_path, new_path):
391 current_umask = os.umask(0)

Callers 1

handle_templateMethod · 0.95

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected