File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ default_app_config = 'codespeed.apps.CodespeedConfig'
Original file line number Diff line number Diff line change 1+ from django .apps import AppConfig
2+ from django .conf import settings
3+
4+
5+ class CodespeedConfig (AppConfig ):
6+ name = 'codespeed'
7+
8+ def ready (self ):
9+ import warnings
10+ if settings .ALLOW_ANONYMOUS_POST :
11+ warnings .warn ("Results can be posted by unregistered users" )
12+ warnings .warn (
13+ "In the future anonymous posting will be disabled by default" ,
14+ category = FutureWarning )
15+ elif not settings .REQUIRE_SECURE_AUTH :
16+ warnings .warn (
17+ "REQUIRE_SECURE_AUTH is not True. This server may prompt for"
18+ " user credentials to be submitted in plaintext" )
Original file line number Diff line number Diff line change 7070USE_MEDIAN_BANDS = True # True to enable median bands on Timeline view
7171
7272
73- ALLOW_ANONYMOUS_POST = False # Whether anonymous users can post results
73+ ALLOW_ANONYMOUS_POST = True # Whether anonymous users can post results
7474REQUIRE_SECURE_AUTH = True # Whether auth needs to be over a secure channel
You can’t perform that action at this time.
0 commit comments