- Jacob Kaplan-Moss - How to give a lightning talk
- Van Lindberg - What Open Source lawyers do
- Greg Wilson - The Next Great Programing Book
- Moshe Zadke - Don't write big applications
- Ned Batchelder - What's new in coverage.py
- Mike MacCana - Docx - 100% native MSWord
- Trent Mick - Python Cookbook online
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.utils.encoding import smart_str, force_unicode | |
from django.utils.safestring import mark_safe | |
import docutils.nodes | |
from docutils.core import publish_parts | |
from docutils.writers import html4css1 | |
register = template.Library() | |
def restructuredtext(value): |
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
def print_name(for_user): | |
print "name is %s" % for_user | |
print_name(for_user="Travis Swicegood") |
Lightning talks - Sunday AM
- Tim Cooper - Postgres-Python
- Gregg Lind - Print spring clean
- Natalia Bidart - Python Argentina
- David Huggins-Daines - You got Cython in my NumPy
- Ken Elkabany - Cloud Computing with Python
Overflow:
Lightning talks - Sunday PM
- Michael Foord - A little bit of Python
- Harald A. Massu - The real harm of functional programming modules
- Carl Trachte - BSD certification / Python BSD OS modules
- Pete Fein - Please pirate: intellectual unproperty
- Katie Cunningham - Something awesome
- Chris McDonough - Self-publishing a book
- Chris Petrilli - Celery: be lazy
- Godfroid Chapelle - VinPDB
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
#### settings.py | |
TEMPLATE_DIRS = [ | |
"/Users/jacob/Revsys/Training/yabl/templates", | |
] | |
#### yabl/urls.py | |
from django.conf.urls.defaults import * |
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
{% extends "base.html" %} | |
{% block content %} | |
<h1>Log in:</h1> | |
<form action="" method="post"> | |
{{ form.as_p }} | |
<input type="hidden" name="next" value="/authors/"> | |
<input type="submit"> | |
</form> | |
{% endblock content %} |
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
def build_dsn(dbtype, params): | |
""" | |
Build a DSN-style connection string, a la: | |
postgres://dbname=jacob,dbpass=sekreit | |
Returns a string. | |
""" | |
args = ",".join(["%s=%s" % (k,v) for (k,v) in params.items()]) | |
return "%s://%s" % (dbtype, args) |
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
##### yabl/settings.py | |
ROOT_URLCONF = 'yabl.urls' | |
TEMPLATE_DIRS = ( | |
"/Users/jacob/training/yabl/templates", | |
) | |
##### yabl/urls.py |