2 Copyright (C) 2007 Lincoln de Sousa <lincoln@archlinux-br.org>
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License as
6 published by the Free Software Foundation; either version 2 of the
7 License, or (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 General Public License for more details.
14 You should have received a copy of the GNU General Public
15 License along with this program; if not, write to the
16 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 Boston, MA 02111-1307, USA.
19 from django.conf.urls.defaults import *
20 from django.conf import settings
21 from conteudo import views as conteudo_views
25 urlpatterns = patterns('',
26 (r'^noticias/(\d+)/$', conteudo_views.noticia),
27 (r'^secao/(\d+)/$', conteudo_views.secao),
28 (r'^admin/', include('django.contrib.admin.urls')),
29 (r'^logout/', 'django.contrib.auth.views.logout',
32 (r'^inscricao/', views.inscricao),
33 (r'^inscricao_individual/', views.inscricao_individual),
34 (r'^inscricao_caravana/', views.inscricao_caravana),
35 (r'^boleto/', views.inscricao_boleto),
37 (r'^submeter_trabalho/', views.submeter_trabalho),
38 (r'^cadastro_palestrante/', views.cadastro_palestrante),
39 (r'^meus_trabalhos/', views.meus_trabalhos),
40 (r'^trabalhos/(?P<codigo>\d+)', views.editar_trabalho),
41 (r'^meus_dados/', views.meus_dados),
42 (r'^chamada_trabalhos/', views.chamada_trabalhos),
43 (r'^avaliacao/', views.avaliacao),
45 (r'^site_media/(.*)$', 'django.views.static.serve',
46 {'document_root': os.path.join(settings.LOCAL_INSTANCE, 'media')}),