forked from tobami/codespeed
-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathapps.py
More file actions
18 lines (15 loc) · 651 Bytes
/
apps.py
File metadata and controls
18 lines (15 loc) · 651 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from django.apps import AppConfig
from django.conf import settings
class CodespeedConfig(AppConfig):
name = 'codespeed'
def ready(self):
import warnings
if settings.ALLOW_ANONYMOUS_POST:
warnings.warn("Results can be posted by unregistered users")
warnings.warn(
"In the future anonymous posting will be disabled by default",
category=FutureWarning)
elif not settings.REQUIRE_SECURE_AUTH:
warnings.warn(
"REQUIRE_SECURE_AUTH is not True. This server may prompt for"
" user credentials to be submitted in plaintext")