Skip to content

Commit

Permalink
disable old theme switcher openrightsgroup/blocked-org-uk#410
Browse files Browse the repository at this point in the history
  • Loading branch information
dantheta committed Oct 11, 2021
1 parent ce381c3 commit 696b925
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 101 deletions.
8 changes: 2 additions & 6 deletions BlockedFrontend/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,14 @@
from .remotecontent import get_remote_content_loader
import db

from flask import Flask, render_template, request, \
abort, g, session
from flask import Flask, render_template, request, abort, g, session

app = Flask("BlockedFrontend", subdomain_matching=True)

app.config.from_object('BlockedFrontend.default_settings')
if 'BLOCKEDFRONTEND_SETTINGS' in os.environ:
app.config.from_envvar('BLOCKEDFRONTEND_SETTINGS')

if app.config.get('SITE_THEME'):
searchpath = app.jinja_loader.searchpath
app.jinja_loader.searchpath.insert(0, searchpath[0] + '/' + app.config['SITE_THEME'])

# app.secret_key = app.config['SESSION_KEY']

logging.basicConfig(
Expand Down Expand Up @@ -87,6 +82,7 @@
app.register_blueprint(cms_assets, subdomain=app.config['SUBDOMAIN_INJUNCTIONS'])
app.register_blueprint(cms_assets, subdomain=app.config['SUBDOMAIN_NOMINET'])


@app.before_first_request
def setup_db():
db.setup()
Expand Down
95 changes: 0 additions & 95 deletions BlockedFrontend/templates/blocked-eu/BasicPage.page.html

This file was deleted.

0 comments on commit 696b925

Please sign in to comment.