Skip to content

Instantly share code, notes, and snippets.


Mikko Ohtamaa miohtama

View GitHub Profile
miohtama /
Last active Nov 5, 2016 — forked from mmerickel/
localized routes in pyramid
"""Self-contained language aware path routing example for Pyramid."""
from urllib.parse import urlunparse
from urllib.parse import urlparse
from wsgiref.simple_server import make_server
from pyramid.config import Configurator
from pyramid.httpexceptions import HTTPFound
from pyramid.request import Request
from pyramid.response import Response