Fixes unstyled Setup UI (#291)

* Changing /static to /themes
* Adding test to make sure setup behavior works
This commit is contained in:
Kevin Chung
2017-06-18 18:54:20 -04:00
committed by GitHub
parent 8628c724ab
commit b6ce783cfd
4 changed files with 30 additions and 23 deletions

View File

@@ -13,14 +13,6 @@ from CTFd import utils
views = Blueprint('views', __name__)
@views.before_request
def redirect_setup():
if request.path.startswith("/static"):
return
if not utils.is_setup() and request.path != "/setup":
return redirect(url_for('views.setup'))
@views.route('/setup', methods=['GET', 'POST'])
def setup():
# with app.app_context():