Django Usage – aws

print query sql — qs.filter(Q(reviewee=request.user) | Q(review__reviewer=request.user))

qs.filter(Q(reviewee=request.user) | Q(review__reviewer=request.user)).query

inlines

/stackoverflow.com/questions/877723/inline-form-validation-in-django

change_form

/stackoverflow.com/questions/40150143/changing-djangos-admin-create-change-form-layout

resize form field in admin

/stackoverflow.com/questions/910169/resize-fields-in-django-admin

specify change_form template for each app/model

/stackoverflow.com/questions/38393137/django-admin-custom-change-form-html-and-3rd-party-apps-custom-change-form

unmigrate

/stackoverflow.com/questions/32123477/django-revert-last-migration

 

testing

disable testing logging

in log disable debug

./manage.py test — -s

/stackoverflow.com/questions/1236285/how-do-i-see-stdout-when-running-django-tests

814-541-7336

use nmap -p0 server name

nmap -P0 paleodb.science.mq.edu.au

Firewall: ipfw show exists and is blocking on this host eg, sudo ipfw add 20000 allow tcp from any to any dst-port 80