# Copyright 2005-2008, James Garrison
# Copyright 2010, 2012 Bradley M. Kuhn

# This software's license gives you freedom; you can copy, convey,
# propagate, redistribute, modify and/or redistribute modified versions of
# this program under the terms of the GNU Affero General Public License
# (AGPL) as published by the Free Software Foundation (FSF), either
# version 3 of the License, or (at your option) any later version of the
# AGPL published by the FSF.
#
# 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 in a file in the toplevel directory called
# "AGPLv3".  If not, see <http://www.gnu.org/licenses/>.

from django.conf.urls import url, include
from django.contrib import admin, admindocs

from conservancy import feeds, frontpage, sponsors
import conservancy.apps.fundgoal.views as fundgoal_views
import conservancy.static.views as static_views

admin.autodiscover()

urlpatterns = [
    url(r'^$', frontpage.view),
    url(r'^sponsors$', frontpage.view),
    url(r'^sponsors/$', sponsors.view),
    url(r'^sponsors/index.html$', sponsors.view),
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    url(r'^admin/', admin.site.urls),
    url(r'^feeds/blog/?$', feeds.BlogFeed()),
    url(r'^feeds/news/?$', feeds.PressReleaseFeed()),
    url(r'^feeds/omnibus/?$', feeds.OmnibusFeed()),
    url(r'^feeds/?$', feeds.view),
    url(r'^news(/|$)', include('conservancy.apps.news.urls')),
    url(r'^blog(/|$)', include('conservancy.apps.blog.urls')),
    # formerly static templated things... (dirs with templates)
    url(r'^error/(40[134]|500)(?:/index\.html|/|)$', static_views.handler),
    url(r'^error', static_views.index),
    url(r'^about', static_views.index),
    url(r'^donate', static_views.index),
    url(r'^copyleft-compliance', static_views.index,
                           {'fundraiser_sought' : 'vmware-match-0'}),
    url(r'^projects', static_views.index),
    url(r'^npoacct', static_views.index,
                  {'fundraiser_sought' : 'npoacct'}),
    url(r'^contractpatch', include('conservancy.apps.contractpatch.urls')),
    url(r'^overview', static_views.index),
    url(r'^privacy-policy', static_views.index),
    url(r'^supporter', include('conservancy.apps.supporter.urls')),
    url(r'^fundraiser_data', fundgoal_views.view),
]

[((27, 0, 27, 20), 'django.contrib.admin.autodiscover', 'admin.autodiscover', ({}, {}), '()', False, 'from django.contrib import admin, admindocs\n'), ((30, 4, 30, 30), 'django.conf.urls.url', 'url', ({(30, 8, 30, 13): '"""^$"""', (30, 15, 30, 29): 'frontpage.view'}, {}), "('^$', frontpage.view)", False, 'from django.conf.urls import url, include\n'), ((31, 4, 31, 38), 'django.conf.urls.url', 'url', ({(31, 8, 31, 21): '"""^sponsors$"""', (31, 23, 31, 37): 'frontpage.view'}, {}), "('^sponsors$', frontpage.view)", False, 'from django.conf.urls import url, include\n'), ((32, 4, 32, 38), 'django.conf.urls.url', 'url', ({(32, 8, 32, 22): '"""^sponsors/$"""', (32, 24, 32, 37): 'sponsors.view'}, {}), "('^sponsors/$', sponsors.view)", False, 'from django.conf.urls import url, include\n'), ((33, 4, 33, 48), 'django.conf.urls.url', 'url', ({(33, 8, 33, 32): '"""^sponsors/index.html$"""', (33, 34, 33, 47): 'sponsors.view'}, {}), "('^sponsors/index.html$', sponsors.view)", False, 'from django.conf.urls import url, include\n'), ((35, 4, 35, 36), 'django.conf.urls.url', 'url', ({(35, 8, 35, 18): '"""^admin/"""', (35, 20, 35, 35): 'admin.site.urls'}, {}), "('^admin/', admin.site.urls)", False, 'from django.conf.urls import url, include\n'), ((39, 4, 39, 33), 'django.conf.urls.url', 'url', ({(39, 8, 39, 20): '"""^feeds/?$"""', (39, 22, 39, 32): 'feeds.view'}, {}), "('^feeds/?$', feeds.view)", False, 'from django.conf.urls import url, include\n'), ((43, 4, 43, 74), 'django.conf.urls.url', 'url', ({(43, 8, 43, 51): '"""^error/(40[134]|500)(?:/index\\\\.html|/|)$"""', (43, 53, 43, 73): 'static_views.handler'}, {}), "('^error/(40[134]|500)(?:/index\\\\.html|/|)$', static_views.handler)", False, 'from django.conf.urls import url, include\n'), ((44, 4, 44, 38), 'django.conf.urls.url', 'url', ({(44, 8, 44, 17): '"""^error"""', (44, 19, 44, 37): 'static_views.index'}, {}), "('^error', static_views.index)", False, 'from django.conf.urls import url, include\n'), ((45, 4, 45, 38), 'django.conf.urls.url', 'url', ({(45, 8, 45, 17): '"""^about"""', (45, 19, 45, 37): 'static_views.index'}, {}), "('^about', static_views.index)", False, 'from django.conf.urls import url, include\n'), ((46, 4, 46, 39), 'django.conf.urls.url', 'url', ({(46, 8, 46, 18): '"""^donate"""', (46, 20, 46, 38): 'static_views.index'}, {}), "('^donate', static_views.index)", False, 'from django.conf.urls import url, include\n'), ((47, 4, 48, 68), 'django.conf.urls.url', 'url', ({(47, 8, 47, 31): '"""^copyleft-compliance"""', (47, 33, 47, 51): 'static_views.index', (48, 27, 48, 67): "{'fundraiser_sought': 'vmware-match-0'}"}, {}), "('^copyleft-compliance', static_views.index, {'fundraiser_sought':\n    'vmware-match-0'})", False, 'from django.conf.urls import url, include\n'), ((49, 4, 49, 41), 'django.conf.urls.url', 'url', ({(49, 8, 49, 20): '"""^projects"""', (49, 22, 49, 40): 'static_views.index'}, {}), "('^projects', static_views.index)", False, 'from django.conf.urls import url, include\n'), ((50, 4, 51, 52), 'django.conf.urls.url', 'url', ({(50, 8, 50, 19): '"""^npoacct"""', (50, 21, 50, 39): 'static_views.index', (51, 18, 51, 51): "{'fundraiser_sought': 'npoacct'}"}, {}), "('^npoacct', static_views.index, {'fundraiser_sought': 'npoacct'})", False, 'from django.conf.urls import url, include\n'), ((53, 4, 53, 41), 'django.conf.urls.url', 'url', ({(53, 8, 53, 20): '"""^overview"""', (53, 22, 53, 40): 'static_views.index'}, {}), "('^overview', static_views.index)", False, 'from django.conf.urls import url, include\n'), ((54, 4, 54, 47), 'django.conf.urls.url', 'url', ({(54, 8, 54, 26): '"""^privacy-policy"""', (54, 28, 54, 46): 'static_views.index'}, {}), "('^privacy-policy', static_views.index)", False, 'from django.conf.urls import url, include\n'), ((56, 4, 56, 49), 'django.conf.urls.url', 'url', ({(56, 8, 56, 27): '"""^fundraiser_data"""', (56, 29, 56, 48): 'fundgoal_views.view'}, {}), "('^fundraiser_data', fundgoal_views.view)", False, 'from django.conf.urls import url, include\n'), ((34, 24, 34, 64), 'django.conf.urls.include', 'include', ({(34, 32, 34, 63): '"""django.contrib.admindocs.urls"""'}, {}), "('django.contrib.admindocs.urls')", False, 'from django.conf.urls import url, include\n'), ((36, 27, 36, 43), 'conservancy.feeds.BlogFeed', 'feeds.BlogFeed', ({}, {}), '()', False, 'from conservancy import feeds, frontpage, sponsors\n'), ((37, 27, 37, 51), 'conservancy.feeds.PressReleaseFeed', 'feeds.PressReleaseFeed', ({}, {}), '()', False, 'from conservancy import feeds, frontpage, sponsors\n'), ((38, 30, 38, 49), 'conservancy.feeds.OmnibusFeed', 'feeds.OmnibusFeed', ({}, {}), '()', False, 'from conservancy import feeds, frontpage, sponsors\n'), ((40, 23, 40, 60), 'django.conf.urls.include', 'include', ({(40, 31, 40, 59): '"""conservancy.apps.news.urls"""'}, {}), "('conservancy.apps.news.urls')", False, 'from django.conf.urls import url, include\n'), ((41, 23, 41, 60), 'django.conf.urls.include', 'include', ({(41, 31, 41, 59): '"""conservancy.apps.blog.urls"""'}, {}), "('conservancy.apps.blog.urls')", False, 'from django.conf.urls import url, include\n'), ((52, 27, 52, 73), 'django.conf.urls.include', 'include', ({(52, 35, 52, 72): '"""conservancy.apps.contractpatch.urls"""'}, {}), "('conservancy.apps.contractpatch.urls')", False, 'from django.conf.urls import url, include\n'), ((55, 23, 55, 65), 'django.conf.urls.include', 'include', ({(55, 31, 55, 64): '"""conservancy.apps.supporter.urls"""'}, {}), "('conservancy.apps.supporter.urls')", False, 'from django.conf.urls import url, include\n')]