Fix indentation in settings and urls modules

This commit is contained in:
Ben Sturmfels 2023-10-20 12:47:30 +11:00
parent 15ce31eedb
commit e9bdb18b7e
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0
2 changed files with 28 additions and 28 deletions

View file

@ -17,6 +17,8 @@
# along with this program in a file in the toplevel directory called # along with this program in a file in the toplevel directory called
# "AGPLv3". If not, see <http://www.gnu.org/licenses/>. # "AGPLv3". If not, see <http://www.gnu.org/licenses/>.
from pathlib import Path
from djangocommonsettings import * from djangocommonsettings import *
SITE_ID = 2 SITE_ID = 2
@ -104,24 +106,24 @@ DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
BASE_DIR = Path(__file__).resolve().parent.parent BASE_DIR = Path(__file__).resolve().parent.parent
TEMPLATES = [ TEMPLATES = [
{ {
'BACKEND': 'django.template.backends.django.DjangoTemplates', 'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [ 'DIRS': [
BASE_DIR / 'conservancy' / 'templates', BASE_DIR / 'conservancy' / 'templates',
BASE_DIR / 'conservancy' / 'static', BASE_DIR / 'conservancy' / 'static',
], ],
'APP_DIRS': True, 'APP_DIRS': True,
'OPTIONS': { 'OPTIONS': {
'context_processors': [ 'context_processors': [
'django.template.context_processors.debug', 'django.template.context_processors.debug',
'django.template.context_processors.request', 'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth', 'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages', 'django.contrib.messages.context_processors.messages',
'conservancy.local_context_processors.host_url', 'conservancy.local_context_processors.host_url',
'conservancy.local_context_processors.sitefundraiser', 'conservancy.local_context_processors.sitefundraiser',
] ]
} }
} }
] ]
STATIC_ROOT = BASE_DIR.parent / 'collected_static' STATIC_ROOT = BASE_DIR.parent / 'collected_static'
@ -130,10 +132,10 @@ STATICFILES_DIRS = [
] ]
MIDDLEWARE = [ MIDDLEWARE = [
'django.middleware.common.CommonMiddleware', 'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware', 'django.contrib.messages.middleware.MessageMiddleware',
'conservancy.middleware.ForceCanonicalHostnameMiddleware', 'conservancy.middleware.ForceCanonicalHostnameMiddleware',
# 'django.middleware.doc.XViewMiddleware', # 'django.middleware.doc.XViewMiddleware',
] ]

View file

@ -49,14 +49,12 @@ urlpatterns = [
url(r'^about', static_views.index), url(r'^about', static_views.index),
url(r'^activities', static_views.index), url(r'^activities', static_views.index),
url(r'^donate', static_views.index), url(r'^donate', static_views.index),
url(r'^copyleft-compliance', static_views.index, url(r'^copyleft-compliance', static_views.index, {'fundraiser_sought': 'vmware-match-0'}),
{'fundraiser_sought' : 'vmware-match-0'}),
url(r'^learn', static_views.index), url(r'^learn', static_views.index),
url(r'^press', static_views.index), url(r'^press', static_views.index),
url(r'^projects', static_views.index), url(r'^projects', static_views.index),
url(r'^GiveUpGitHub', static_views.index), url(r'^GiveUpGitHub', static_views.index),
url(r'^npoacct', static_views.index, url(r'^npoacct', static_views.index, {'fundraiser_sought': 'npoacct'}),
{'fundraiser_sought' : 'npoacct'}),
url(r'^contractpatch', include('conservancy.apps.contractpatch.urls')), url(r'^contractpatch', include('conservancy.apps.contractpatch.urls')),
url(r'^overview', static_views.index), url(r'^overview', static_views.index),
url(r'^privacy-policy', static_views.index), url(r'^privacy-policy', static_views.index),