{% extends "otree/BaseAdmin.html" %} {% block title %} Server Readiness Checks {% endblock %} {% block content %}

For details on how to fix any issues highlighted below, see here.

{% if pypi_results.pypi_connection_error %}
Update status unknown Could not connect to PyPI to check if your otree-core package is up to date.
{% elif pypi_results.update_needed %}
You are using an old oTree version {{ pypi_results.update_message }}
{% else %}
You have a recent version of oTree ({{ pypi_results.installed_version }}).
{% endif %} {% if sqlite %}
Using SQLite You are using SQLite, which is only suitable during development and testing of your app. Before launching a study, you should upgrade to Postgres (or MySQL etc).
{% else %}
You are using a proper database (Postgres, MySQL, etc).
{% endif %} {% if debug %}
DEBUG mode is on You should only use DEBUG mode during development and testing of your app. Before launching a study, you should switch DEBUG mode off. To turn off DEBUG mode, {% if heroku %} run:

heroku config:set OTREE_PRODUCTION=1

{% else %} set the environment variable OTREE_PRODUCTION to 1. {% endif %}
{% else %}
DEBUG mode is off
{% endif %} {% if runserver %}
You are using otree runserver, which is only suitable for local development. When launching a real study, you should run a proper multi-process server, e.g. otree runprodserver.
{% else %}
You are using a server other than runserver.
{% endif %} {% if not sentry %}
Sentry not configured Sentry can send you the details of each server error by email. This is necessary because once you have turned off DEBUG mode, you will no longer see Django’s yellow error pages; you or your users will just see generic "500 server error" pages. To set up Sentry, see here.
{% else %}
Sentry is configured.
{% endif %} {% if not auth_level_ok %}
No password protection To prevent unauthorized server access, you should set the environment variable OTREE_AUTH_LEVEL.
{% else %}
Password protection is on. Your app's AUTH_LEVEL is {{ auth_level }}.
{% endif %} {% if not db_synced %}
Database is missing tables You should run otree resetdb.
{% else %}
Your database appears to be synced.
{% endif %} {% endblock %}