o
    CZc                     @   s(   d dl mZ ddlT dd Zdd ZdS )	    )render   )*c                 C   s4   t j }d}d}d}||||d}d}t| ||S )NBlogszblogs detail)blogtitledescriptionkeywordzfront/blog/blog-list.html)Blogobjectsallr   )requestr   r   r   r	   contexttemplate_name r   /var/www/jaguar/blog/views.pybloglist   s   
r   c           
      C   sd   t j }tj ddd }tjj|d}|j}|j}|j}||||||d}d}	t	| |	|S )N
created_atr      )slug)
blogdetailcategorylatestr   r   r	   zfront/blog/blog-details.html)
BlogCategoryr   r   r
   order_bygetr   r   r	   r   )
r   r   r   r   r   r   r   r	   r   r   r   r   r   blog_detail   s   
r   N)django.shortcutsr   modelsr   r   r   r   r   r   <module>   s    	