Changeset View
Changeset View
Standalone View
Standalone View
swh/web/misc/fundraising.py
# Copyright (C) 2021 The Software Heritage developers | # Copyright (C) 2021-2022 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU Affero General Public License version 3, or any later version | # License: GNU Affero General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
import requests | import requests | ||||
from django.conf.urls import url | |||||
from django.shortcuts import render | from django.shortcuts import render | ||||
from django.urls import re_path as url | |||||
from django.views.decorators.clickjacking import xframe_options_exempt | from django.views.decorators.clickjacking import xframe_options_exempt | ||||
from swh.web.config import get_config | from swh.web.config import get_config | ||||
@xframe_options_exempt | @xframe_options_exempt | ||||
def fundraising_banner(request): | def fundraising_banner(request): | ||||
config = get_config() | config = get_config() | ||||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |