Skip to content

Commit

Permalink
Merge pull request #24 from akirachix/feature/deployment
Browse files Browse the repository at this point in the history
maded changes
  • Loading branch information
Ndichu-shee authored Sep 23, 2024
2 parents 04cd18b + 69e6055 commit ba44244
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion api/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
router = DefaultRouter()
router.register(r"notifications", NotificationViewSet)
urlpatterns = router.urls

urlpatterns = [
path("", include(router.urls)),
path("users/", UserListView.as_view(), name="user-list"),
Expand Down
7 changes: 5 additions & 2 deletions aquasens/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,24 @@
"sensor",
"notification",
"corsheaders",
"django_extensions",
]

MIDDLEWARE = [
"django.middleware.security.SecurityMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"corsheaders.middleware.CorsMiddleware",
"django.middleware.common.CommonMiddleware",
"django.middleware.csrf.CsrfViewMiddleware",
"corsheaders.middleware.CorsMiddleware",
"django.contrib.auth.middleware.AuthenticationMiddleware",
"django.contrib.messages.middleware.MessageMiddleware",
"django.middleware.clickjacking.XFrameOptionsMiddleware",
"whitenoise.middleware.WhiteNoiseMiddleware",
]

CORS_ORIGIN_ALLOW_ALL = True


ROOT_URLCONF = "aquasens.urls"

REST_FRAMEWORK = {
Expand Down Expand Up @@ -108,7 +112,6 @@
}
}


# Password validation
# https://docs.djangoproject.com/en/5.1/ref/settings/#auth-password-validators

Expand Down

0 comments on commit ba44244

Please sign in to comment.