Skip to content

Instantly share code, notes, and snippets.

View tbaxter-18f's full-sized avatar

Carter Baxter tbaxter-18f

View GitHub Profile
module.exports = () => {
var domainScans = [];
domains.forEach(function(item) { // domains is just a list of domain names.
var scanner_url = `https://site-scanning.app.cloud.gov/api/v1/domains/${item}/`;
axios.get(scanner_url).then((response) => {
domainScans.push({
'url': scanner_url,
'domain': item,
'domainData': response.data
})
FCOHDJ-K1N1HV2F% docker-compose run app bash
Starting tock_db_1 ... done
root@09ea46009f50:/tock# python manage.py flush
Connection to database established.
You have requested a flush of the database.
This will IRREVERSIBLY DESTROY all data currently in the 'tock' database,
and return each table to an empty state.
Are you sure you want to do this?
Type 'yes' to continue, or 'no' to cancel: yes
from django import template
from django.template.loader import get_template
register = template.Library()
@register.inclusion_tag('my_template_for_this_tag.html')
def show_template(template_name):
"""
Shows the output of a given template.
Usage: