Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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 .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ REDIS_HOST=redis
# Source csv files for indexing
CSV_FOLDER_IMPORT_PATH=./docker-emlo/csv_import_files

# Address of portal serving static pages (inc. final /)
PORTAL_URL="https://emlo-portal.bodleian.ox.ac.uk/"

# You can pass either "true" or "false" to run your application in debug mode.
DEBUG="false"

Expand All @@ -21,4 +24,4 @@ SMTP_SERVER=your_smpt_server
SMTP_PORT=POST
EMAIL_TO=to_emails
EMAIL_TO_PASS="your_app_passoword[NOT_YOUR_ACTUAL_PASSWORD]"
SEND_A_COPY="IF_YOU_WISH_TO_SEND_A_COPY_TO_USER_VALUES_ARE[YES, NO]"
SEND_A_COPY="IF_YOU_WISH_TO_SEND_A_COPY_TO_USER_VALUES_ARE[YES, NO]"
10 changes: 8 additions & 2 deletions views/about.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
from flask import Blueprint, render_template
from flask import Blueprint, render_template, redirect
import os
from dotenv import load_dotenv

about_bp = Blueprint('about', __name__)

load_dotenv()

PORTAL_URL = os.getenv("PORTAL_URL")

@about_bp.route('/about')
def about():
return render_template('about.jinja2', title="About")
return redirect(PORTAL_URL + "collections/?page_id=907", code=302)
#return render_template('about.jinja2', title="About")
10 changes: 8 additions & 2 deletions views/contribute.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
from flask import Blueprint, render_template
from flask import Blueprint, render_template, redirect
import os
from dotenv import load_dotenv

contribute_bp = Blueprint('contribute', __name__)

load_dotenv()

PORTAL_URL = os.getenv("PORTAL_URL")

@contribute_bp.route('/contribute')
def contribute():
return render_template('contribute.jinja2', title="Contribute")
return redirect(PORTAL_URL + "collections/?page_id=913", code=302)
#return render_template('contribute.jinja2', title="Contribute")