# -*- coding: utf-8 -*-
#
# Copyright (©) 2013 Marcelo Jorge Vieira <metal@alucinados.com>
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU Affero General Public License as
#  published by the Free Software Foundation, either version 3 of the
#  License, or (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU Affero General Public License for more details.
#
#  You should have received a copy of the GNU Affero General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.

from django.conf.urls import patterns, url


urlpatterns = patterns(
    'montanha.views',

    # JSON queries
    url(r'^([^/]+)?/?q/all/?$', 'query_all', name='query-all'),

    url(r'^([^/]+)?/?all/?$', 'show_all', name='show-all'),

    url(r'^([^/]+)?/?per-nature/?$', 'show_per_nature', name='per-nature'),
    url(r'^([^/]+)?/?per-legislator/?$', 'show_per_legislator', name='per-legislator'),
    url(r'^([^/]+)?/?per-party/?$', 'show_per_party', name='per-party'),
    url(r'^([^/]+)?/?per-supplier/?$', 'show_per_supplier', name='per-supplier'),

    url(r'^([^/]+)?/?detail-legislator/(\d+)/?$', 'show_legislator_detail', name='show-legislator-detail'),
    url(r'^([^/]+)?/?detail-supplier/(\d+)/?$', 'show_supplier_detail', name='show-supplier-detail'),

    # What is expenses?
    url(r'^o-que-e-verba-indenizatoria/?$', 'what_is_expenses', name='what-is-expenses'),

    # Contact us
    url(r'^fale-conosco/?$', 'contact_us', name='contact-us'),

    # Index
    url(r'^([^/]+)?/?$', 'show_index', name='index'),
)

@@ -795,16 +795,65 @@
 ns, url%0A
+from django.views.defaults import page_not_found%0A
 %0A%0Aurlpat
@@ -1565,24 +1565,105 @@
 -detail'),%0A%0A
+    # favicon%0A    url(r'%5Efavicon.ico$', page_not_found, name='page-not-found'),%0A%0A
     # What i

Send a 404 for favicon.ico since we do not have it