Skip to content

Commit ff66749

Browse files
committed
fix: tidy up
1 parent 7bcf1ac commit ff66749

File tree

4 files changed

+1
-78
lines changed

4 files changed

+1
-78
lines changed

application.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,4 @@
77

88
from codeforlife.server import Server
99

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()

settings.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,3 @@
5656
# https://docs.djangoproject.com/en/4.2/topics/http/sessions/
5757

5858
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")))

src/urls.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
ContributorViewSet,
3030
LoginView,
3131
)
32-
from .views.health_check import HealthCheckView
3332

3433
default_router.register(
3534
"agreement-signatures",
@@ -56,6 +55,5 @@
5655
name="session-login",
5756
),
5857
],
59-
health_check_view=HealthCheckView,
6058
include_user_urls=False,
6159
)

src/views/health_check.py

Lines changed: 0 additions & 60 deletions
This file was deleted.

0 commit comments

Comments
 (0)