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
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 | |
}) |
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
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 |
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 | |
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: |