Changeset - e9bdb18b7eca
[Not reviewed]
0 2 0
Ben Sturmfels (bsturmfels) - 6 months ago 2023-10-20 01:47:30
ben@sturm.com.au
Fix indentation in settings and urls modules
2 files changed with 28 insertions and 28 deletions:
0 comments (0 inline, 0 general)
www/conservancy/settings.py
Show inline comments
...
 
@@ -17,6 +17,8 @@
 
# along with this program in a file in the toplevel directory called
 
# "AGPLv3".  If not, see <http://www.gnu.org/licenses/>.
 

	
 
from pathlib import Path
 

	
 
from djangocommonsettings import *
 

	
 
SITE_ID = 2
...
 
@@ -104,24 +106,24 @@ DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
 

	
 
BASE_DIR = Path(__file__).resolve().parent.parent
 
TEMPLATES = [
 
   {
 
      'BACKEND': 'django.template.backends.django.DjangoTemplates',
 
      'DIRS': [
 
         BASE_DIR / 'conservancy' / 'templates',
 
         BASE_DIR / 'conservancy' / 'static',
 
      ],
 
      'APP_DIRS': True,
 
      'OPTIONS': {
 
         'context_processors': [
 
            'django.template.context_processors.debug',
 
            'django.template.context_processors.request',
 
            'django.contrib.auth.context_processors.auth',
 
            'django.contrib.messages.context_processors.messages',
 
            'conservancy.local_context_processors.host_url',
 
            'conservancy.local_context_processors.sitefundraiser',
 
         ]
 
      }
 
   }
 
    {
 
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
 
        'DIRS': [
 
            BASE_DIR / 'conservancy' / 'templates',
 
            BASE_DIR / 'conservancy' / 'static',
 
        ],
 
        'APP_DIRS': True,
 
        'OPTIONS': {
 
            'context_processors': [
 
                'django.template.context_processors.debug',
 
                'django.template.context_processors.request',
 
                'django.contrib.auth.context_processors.auth',
 
                'django.contrib.messages.context_processors.messages',
 
                'conservancy.local_context_processors.host_url',
 
                'conservancy.local_context_processors.sitefundraiser',
 
            ]
 
        }
 
    }
 
]
 

	
 
STATIC_ROOT = BASE_DIR.parent / 'collected_static'
...
 
@@ -130,10 +132,10 @@ STATICFILES_DIRS = [
 
]
 

	
 
MIDDLEWARE = [
 
   'django.middleware.common.CommonMiddleware',
 
   'django.contrib.sessions.middleware.SessionMiddleware',
 
   'django.contrib.auth.middleware.AuthenticationMiddleware',
 
   'django.contrib.messages.middleware.MessageMiddleware',
 
   'conservancy.middleware.ForceCanonicalHostnameMiddleware',
 
   #    'django.middleware.doc.XViewMiddleware',
 
    'django.middleware.common.CommonMiddleware',
 
    'django.contrib.sessions.middleware.SessionMiddleware',
 
    'django.contrib.auth.middleware.AuthenticationMiddleware',
 
    'django.contrib.messages.middleware.MessageMiddleware',
 
    'conservancy.middleware.ForceCanonicalHostnameMiddleware',
 
    # 'django.middleware.doc.XViewMiddleware',
 
]
www/conservancy/urls.py
Show inline comments
...
 
@@ -49,14 +49,12 @@ urlpatterns = [
 
    url(r'^about', static_views.index),
 
    url(r'^activities', static_views.index),
 
    url(r'^donate', static_views.index),
 
    url(r'^copyleft-compliance', static_views.index,
 
                           {'fundraiser_sought' : 'vmware-match-0'}),
 
    url(r'^copyleft-compliance', static_views.index, {'fundraiser_sought': 'vmware-match-0'}),
 
    url(r'^learn', static_views.index),
 
    url(r'^press', static_views.index),
 
    url(r'^projects', static_views.index),
 
    url(r'^GiveUpGitHub', static_views.index),
 
    url(r'^npoacct', static_views.index,
 
                  {'fundraiser_sought' : 'npoacct'}),
 
    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),
0 comments (0 inline, 0 general)