File tree Expand file tree Collapse file tree 4 files changed +1
-78
lines changed Expand file tree Collapse file tree 4 files changed +1
-78
lines changed Original file line number Diff line number Diff line change 7
7
8
8
from codeforlife .server import Server
9
9
10
- server = Server ()
11
-
12
- # pylint: disable=wrong-import-position
13
- from django .conf import settings
14
- from django .contrib .sites .models import Site
15
-
16
- Site .objects .get_or_create (
17
- domain = settings .SERVICE_DOMAIN ,
18
- defaults = {"name" : settings .SERVICE_DOMAIN },
19
- )
20
-
21
- server .run ()
10
+ Server ().run ()
Original file line number Diff line number Diff line change 56
56
# https://docs.djangoproject.com/en/4.2/topics/http/sessions/
57
57
58
58
SESSION_ENGINE = "src.models.session"
59
-
60
- # TODO: delete this.
61
- CSRF_COOKIE_SECURE = bool (int (os .getenv ("CSRF_COOKIE_SECURE" , "1" )))
62
- CORS_ALLOW_ALL_ORIGINS = bool (int (os .getenv ("CORS_ALLOW_ALL_ORIGINS" , "0" )))
Original file line number Diff line number Diff line change 29
29
ContributorViewSet ,
30
30
LoginView ,
31
31
)
32
- from .views .health_check import HealthCheckView
33
32
34
33
default_router .register (
35
34
"agreement-signatures" ,
56
55
name = "session-login" ,
57
56
),
58
57
],
59
- health_check_view = HealthCheckView ,
60
58
include_user_urls = False ,
61
59
)
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments