

from django.conf.urls import url
from django.contrib import admin
from core.views import *
from django.conf import settings		
from django.conf.urls.static import static
from django.contrib.auth.views import login,logout

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^$',index, name="home"),
    url(r'disciplina',disciplina),
    url(r'detalhe_curso',detalhe_curso),
    url(r'index',index),
    url(r'noticias',noticias),
    url(r'lista_curso',lista_cursos),
    url(r'contato',contato),
    url(r'entrar',login,{"template_name":"login.html"},name="login"),
    url(r'sair',logout,{"template_name":"logout.html"}),
    url(r'aluno', aluno),
    url(r'professor',professor),
    url(r'boletim',boletim),
    url(r'^questao_form',questao_form,name='questao_form'),
    url(r'matricula',matricula),
    url(r'consulta_matricula',consulta_matricula),
]

if settings.DEBUG:
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
