a
    Ga                     @   s|   d dl m Z  d dlmZ d dlmZ d dlmZmZ d dlm	Z	 d dl
mZ eddd	d
 Zedddd Zdd ZdS )    )datetime)render)HttpRequest)login_requiredpermission_required)messages)
LargeFiresz/login)	login_urlc                 C   s.   t | tsJ t| ddt jdt dS )Renders the home page.zNEWA_Main/index.html	Home PageactivetitleyearZmenuhomeage
isinstancer   r   r   nowr   r   Zcheckagerequest r   6C:\Users\brian\Desktop\NEWAFireInfo\NEWA_Main\views.pyhome
   s    r   c              	   C   s0   t | tsJ t| dddt jdt dS )zRenders the about page.zNEWA_Main/about.htmlZAboutz"Your application description page.r   )r   messager   Z	menuaboutr   r   r   r   r   r   about   s    r   c                 C   s.   t | tsJ t| ddt jdt dS )r
   zNEWA_Main/usertry.htmlr   r   r   r   r   r   r   r   usertryh   s    r   N)r   django.shortcutsr   django.httpr   django.contrib.auth.decoratorsr   r   django.contribr   ZTRG.Programsr   r   r   r   r   r   r   r   <module>   s   

K