mkvirtualenv pythondotorg | |
workon pythondotorg | |
git clone (github url) | |
pip install -r pythondotorg/requirements.txt | |
add2virtualenv . | |
add2virtualenv pythondotorg |
import click | |
import json | |
import subprocess | |
def run_command(cmd, as_list=True): | |
try: | |
output = subprocess.check_output( | |
cmd, | |
stderr=subprocess.STDOUT, |
""" | |
Copyright (c) 2015, Jeff Triplett | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without | |
modification, are permitted provided that the following conditions are met: | |
* Redistributions of source code must retain the above copyright notice, this | |
list of conditions and the following disclaimer. | |
* Redistributions in binary form must reproduce the above copyright notice, |
### Keybase proof | |
I hereby claim: | |
* I am jefftriplett on github. | |
* I am jefftriplett (https://keybase.io/jefftriplett) on keybase. | |
* I have a public key whose fingerprint is B2E0 9BFC 00DD 3C24 B05F A80D 341C A25B 11B1 4EC6 | |
To claim this, I am signing this object: |
""" | |
Originaly code was taken from: http://djangosnippets.org/snippets/290/ | |
But I was made some improvements like: | |
- print URL from what queries was | |
- don't show queries from static URLs (MEDIA_URL and STATIC_URL, also for /favicon.ico). | |
- If DEBUG is False tell to django to not use this middleware | |
- Remove guessing of terminal width (This breaks the rendered SQL) | |
""" | |
from clint.textui import colored, columns, indent, puts |
Registration is open! You may book your tickets and reserve your hotel accommodations for DjangoCon US!
We’ve worked hard to lower ticket prices this year, and thus have low prices for students and individuals. Financial assistance is also available to those with limited budgets.
Register for Djangocon 2015 here.
Reserve your hotel accommodation to take advantage of our discounted room rates. This year the daily room rate for single or double occupancy is $139. Please use the reservation code of DJANGO0915.
Give a Python a Pony by @kennethlove #djbday
A More Accessible Django Girls @laceynwilliams #djbday
How Django Is Good For Your Health by @craigbruce #djbday
Django: The Conspiracy by @andrewgodwin #djbday
Snakes, Ponies and Balloons: Stories of Teaching Django to Thousands of Women by @olasitarska #djbday