diff --git a/otree/api.py b/otree/api.py index db9f84a5d..9552d33a0 100644 --- a/otree/api.py +++ b/otree/api.py @@ -1,7 +1,7 @@ from importlib import import_module as _import_module -from otree.constants import BaseConstants # noqa from otree.models import BaseSubsession, BaseGroup, BasePlayer # noqa +from otree.constants import BaseConstants # noqa from otree.views import Page, WaitPage # noqa from otree.common import Currency, currency_range, safe_json # noqa from otree.bots import Bot, Submission, SubmissionMustFail # noqa diff --git a/otree/channels/routing.py b/otree/channels/routing.py index abeac2f8e..fb972f3c6 100644 --- a/otree/channels/routing.py +++ b/otree/channels/routing.py @@ -37,5 +37,6 @@ ] +# TODO: perf issue. this takes 0.1-0.5 seconds. for extensions_module in get_extensions_modules('routing'): channel_routing += getattr(extensions_module, 'channel_routing', []) diff --git a/otree/checks/__init__.py b/otree/checks/__init__.py index 568668441..00196dde3 100644 --- a/otree/checks/__init__.py +++ b/otree/checks/__init__.py @@ -257,7 +257,9 @@ def files(rules, **kwargs): rules.file_exists('views.py') if os.path.isdir(rules.get_path('templates')): + # check for files in templates, but not in templates/