Ńň
ĂbÉLc           @   sm   d  d k  l Z d  d k l Z d  d k l Z l Z l Z e d d   Z e d d   Z	 d   Z
 d	 S(
   i˙˙˙˙(   t   http(   t   requires_csrf_token(   t   Contextt   RequestContextt   loaders   404.htmlc         C   s8   t  i |  } t i | i t |  h |  i d 6   S(   s¤   
    Default 404 handler.

    Templates: `404.html`
    Context:
        request_path
            The path of the requested URL (e.g., '/app/pages/bad_page/')
    t   request_path(   R   t   get_templateR    t   HttpResponseNotFoundt   renderR   t   path(   t   requestt   template_namet   t(    (    s?   /usr/local/lib/python2.6/dist-packages/django/views/defaults.pyt   page_not_found   s    
s   500.htmlc         C   s+   t  i |  } t i | i t h     S(   sI   
    500 error handler.

    Templates: `500.html`
    Context: None
    (   R   R   R    t   HttpResponseServerErrorR   R   (   R
   R   R   (    (    s?   /usr/local/lib/python2.6/dist-packages/django/views/defaults.pyt   server_error   s    c         C   s    d d k  l } | |  | |  S(   Ni˙˙˙˙(   t   shortcut(   t!   django.contrib.contenttypes.viewsR   (   R
   t   content_type_idt	   object_idt   real_shortcut(    (    s?   /usr/local/lib/python2.6/dist-packages/django/views/defaults.pyR   "   s    N(   t   djangoR    t   django.views.decorators.csrfR   t   django.templateR   R   R   R   R   R   (    (    (    s?   /usr/local/lib/python2.6/dist-packages/django/views/defaults.pyt   <module>   s   