Copy the default django patterns rather than modifying them
This prevents an ever-growing list of urls in the case that
getDjangoURLPatterns is called multiple times.
Patch by: Sverre Rabbelier
"Decorator for views that gzips pages if the client supports it."from django.utils.decorators import decorator_from_middlewarefrom django.middleware.gzip import GZipMiddlewaregzip_page = decorator_from_middleware(GZipMiddleware)