Skip to content

Instantly share code, notes, and snippets.

Derrick Kearney diek

  • Halifax, NS, Canada
Block or report user

Report or block diek

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@diek
diek / debug_toolbar.py
Last active Dec 15, 2018
Django Debug Toolbar
View debug_toolbar.py
pip install django-debug-toolbar
# Debug toolbar
Add to settings.py
def show_toolbar(request):
return True
DEBUG_TOOLBAR_CONFIG = {
"SHOW_TOOLBAR_CALLBACK": show_toolbar,
@diek
diek / json
Created Aug 24, 2017
book titles
View json
{
"current_page": 1,
"data": [
{
"book_ids": [
"a_century_of_spies",
"citizen_espionage",
"double_eagle_a01",
"double_eagle_a02",
"games_of_intelligence",
@diek
diek / json
Created Aug 23, 2017
paintings
View json
{
"paintings": {
"painting": [
{
"title": "Boardwalk 5",
"artist": "Arnie Palmer",
"image": "ap1.jpg",
"price": 850
},
{
You can’t perform that action at this time.