Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dctheme update #109

Open
wants to merge 25 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
69cfe5b
Using fwtheme extra_data_centres central configuration
dwest77a Jan 18, 2023
a8275cd
Readded license but commented out
dwest77a Jan 18, 2023
0652a53
Updated settings
dwest77a Jan 24, 2023
3d32f3f
Changed urls for extra data centre update
dwest77a Jan 24, 2023
2aa0862
Merge branch 'dctheme_update' into dctheme_update-1
dwest77a Jan 24, 2023
404ff66
Merge pull request #106 from cedadev/dctheme_update-1
dwest77a Jan 24, 2023
11433c1
Changed staticfiles config settings
dwest77a Jan 24, 2023
7f5493f
Changed img and css sources to /staticfiles
dwest77a Jan 24, 2023
4a9eb79
Changed static paths to /staticfiles
dwest77a Jan 24, 2023
13a2cf7
Updated fwtheme version
dwest77a Jan 24, 2023
7b34620
Added local static files
dwest77a Jan 24, 2023
67548f4
Updated .gitignore with staticfiles dir
dwest77a Jan 24, 2023
1457b1d
Added sharedsecret var
dwest77a Jan 24, 2023
a71c3f6
Removed dj_security_middleware
dwest77a Jan 24, 2023
890b113
Updated cookielaw and removed sharedsecret blank
dwest77a Jan 24, 2023
6d64867
Readded dj security
dwest77a Jan 24, 2023
9115c28
Updated fwtheme version
dwest77a Jan 31, 2023
c0e6447
Merge pull request #108 from cedadev/master
dwest77a Feb 1, 2023
24f82d3
Updated fwtheme-django version to fix cookielaw issue
dwest77a Feb 1, 2023
52d313b
Ensured alignment of fwtheme-django and cookielaw versions
dwest77a Feb 2, 2023
83c0625
Upgraded fwtheme-django-ceda-serv
dwest77a Feb 2, 2023
a579f62
Updated fwtheme
dwest77a Feb 2, 2023
dc650e3
Testing with dj security middleware
dwest77a Feb 3, 2023
5114fab
Added login override fwtheme version
dwest77a Feb 16, 2023
ef3b0aa
Added template for local settings
dwest77a May 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
venv
local
src
staticfiles
archive_browser/settings_local.py
__pycache__
*.pyc
Expand All @@ -9,4 +12,4 @@ __pycache__
.eggs
.idea
.vscode
.static
.static
27 changes: 10 additions & 17 deletions archive_browser/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

import os

from archive_browser.settings_local import *

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

Expand All @@ -33,7 +35,7 @@
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
# 'dj_security_middleware.middleware.DJSecurityMiddleware',
'dj_security_middleware.middleware.DJSecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',

Expand All @@ -52,16 +54,17 @@
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'browser.context_processor.data_centre'
'fwtheme_django_ceda_serv.context_processors.data_centre',
],
},
},
]

WSGI_APPLICATION = 'archive_browser.wsgi.application'


SECURITY_LOGIN_SERVICE = "https://auth.ceda.ac.uk/account/signin"
ACCOUNT_COOKIE_NAME = 'ceda.session.1'


# Internationalization
# https://docs.djangoproject.com/en/1.10/topics/i18n/
Expand All @@ -78,6 +81,10 @@
# https://docs.djangoproject.com/en/1.10/howto/static-files/

STATIC_URL = '/static/'
STATICFILES_DIRS = [BASE_DIR + "/browser/static"]
STATIC_ROOT = BASE_DIR + "/staticfiles"
STATICFILES_STORAGE = "django.contrib.staticfiles.storage.StaticFilesStorage"

THREDDS_SERVICE = 'https://dap.ceda.ac.uk'
FTP_SERVICE = 'ftp://ftp.ceda.ac.uk'
USE_FTP = False
Expand All @@ -90,18 +97,4 @@
ACCESSCTL_URL = "https://accessctl.ceda.ac.uk/api/v1/rules/bypath/?format=json&path="


from archive_browser.settings_local import *

CONTAINER_FLUID = False

#NERC Datacentres - non CEDA Data Centres
DATACENTRES = {
'pdc': 'pdc.html',
'bodc': 'bodc.html',
'eich': 'eich.html',
'ngdc': 'ngdc.html',
'ssdc': 'ssdc.html',
'sparc': 'sparc.html',
'edc': 'edc.html',
'eds': 'eds.html'
}
4 changes: 4 additions & 0 deletions archive_browser/settings_local.py.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
DEBUG = True
SECURITY_SHAREDSECRET=''
SECRET_KEY=''
DISABLE_LOGIN=True
32 changes: 0 additions & 32 deletions browser/context_processor.py

This file was deleted.

184 changes: 0 additions & 184 deletions browser/static/browser/css/bodc.css

This file was deleted.

Loading