Files
@ 1a5441ba7518
Branch filter:
Location: website/conservancy/urls.py - annotation
1a5441ba7518
3.2 KiB
text/x-python
Fix tests
These were failing due to pytest defaulting to `DEBUG = False` (and then getting
`ValueError: Missing staticfiles manifest entry for ...`).
These were failing due to pytest defaulting to `DEBUG = False` (and then getting
`ValueError: Missing staticfiles manifest entry for ...`).
1e119efb7ac2 1e119efb7ac2 1e119efb7ac2 1e119efb7ac2 1e119efb7ac2 1e119efb7ac2 1e119efb7ac2 1e119efb7ac2 1e119efb7ac2 1e119efb7ac2 1e119efb7ac2 1e119efb7ac2 1e119efb7ac2 1e119efb7ac2 1e119efb7ac2 1e119efb7ac2 1e119efb7ac2 1e119efb7ac2 1e119efb7ac2 1a05c6391c1c 1a05c6391c1c 26682bc158d3 1a05c6391c1c 2bf594b86cb1 2ff551147c69 531a97a3c9af 2ff551147c69 2ff551147c69 c858e825c0f2 b2a006f49ce1 2ff551147c69 8b805b313ecc 618bb1e83d94 618bb1e83d94 956f8c6fdaad 789d0c8c843a 618bb1e83d94 618bb1e83d94 8b805b313ecc 8b805b313ecc 8b805b313ecc 618bb1e83d94 618bb1e83d94 8b805b313ecc 2ff551147c69 2ff551147c69 6a8515358b0e 618bb1e83d94 618bb1e83d94 618bb1e83d94 2ff551147c69 2ff551147c69 2ff551147c69 2ff551147c69 2ff551147c69 2ff551147c69 2ff551147c69 2ff551147c69 2ff551147c69 2ff551147c69 2ff551147c69 2ff551147c69 2ff551147c69 b2a006f49ce1 1a05c6391c1c 1a05c6391c1c 1a05c6391c1c 1a05c6391c1c 1a05c6391c1c 1a05c6391c1c | # 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 import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import include, path, re_path
from . import feeds
from .fundgoal import views as fundgoal_views
from . import views
from conservancy.supporters import views as supporters_views
urlpatterns = [
path('', views.frontpage),
path('admin/', admin.site.urls),
path('assignment/', include('conservancy.assignment.urls')),
path('blog/', include('conservancy.blog.urls')),
path('casts/', include('conservancy.podjango.urls')),
path('contacts/', include('conservancy.contacts.urls')),
path('contractpatch/', include('conservancy.contractpatch.urls')),
path('feeds/', feeds.view),
path('feeds/blog/', feeds.BlogFeed()),
path('feeds/news/', feeds.PressReleaseFeed()),
path('feeds/omnibus/', feeds.OmnibusFeed()),
path('fossy/', include('conservancy.fossy.urls')),
path('fundraiser_data/', fundgoal_views.view),
path('news/', include('conservancy.news.urls')),
path('sponsors/', supporters_views.sponsors),
path('sponsors/index.html', supporters_views.sponsors),
path('sustainer/', include('conservancy.supporters.urls')),
path('usethesource/', include('conservancy.usethesource.urls')),
# Directories of templates and files
re_path(r'^about/', views.content),
re_path(r'^activities/', views.content),
re_path(r'^copyleft-compliance/', views.content, {'fundraiser_sought': 'vmware-match-0'}),
re_path(r'^donate/', views.content),
path('fossy/', views.content),
re_path(r'^GiveUpGitHub/', views.content),
re_path(r'^learn/', views.content),
re_path(r'^npoacct/', views.content, {'fundraiser_sought': 'npoacct'}),
re_path(r'^overview/', views.content), # Unused?
re_path(r'^press/', views.content),
re_path(r'^privacy-policy/', views.content),
re_path(r'^projects/', views.content),
re_path(r'^sustainer/', views.content),
]
# Serve uploaded media. Works only when DEBUG == True. Using '/media/'
# explicitly here because MEDIA_URL include scheme/host/port, which would
# otherwise break debug media serving.
# https://docs.djangoproject.com/en/4.0/howto/static-files/#serving-files-uploaded-by-a-user-during-development
urlpatterns += static('/media/', document_root=settings.MEDIA_ROOT)
|