{% extends "otree/BaseAdmin.html" %} {% block title %} Server Readiness Checks {% endblock %} {% block content %} {% if pypi_results.pypi_connection_error %}
Update status unknown Could not connect to PyPI to check if your otree 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, set the environment variable OTREE_PRODUCTION.
{% 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 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 reset the database (resetdb).
{% else %}
Your database appears to be synced.
{% endif %} {% if not runserver %} {% if worker_is_running %}
The worker process is running
{% else %}
No worker process found

The worker process enables the following functionality:

{% if heroku %}

In your app dashboard, make sure the second dyno is turned on.

{% else %}

It is launched automatically as part of otree runprodserver.

{% endif %}
{% endif %} {% endif %} {% endblock %}