diff --git a/cinema/urls.py b/cinema/urls.py index ff2bbd7a1..8fab71570 100644 --- a/cinema/urls.py +++ b/cinema/urls.py @@ -1,7 +1,10 @@ from django.urls import path, include from rest_framework.routers import DefaultRouter -from .views import GenreAPIView, ActorGenericAPIView, CinemaHallViewSet, MovieViewSet +from .views import (GenreAPIView, + ActorGenericAPIView, + CinemaHallViewSet, + MovieViewSet) app_name = "cinema" @@ -13,10 +16,7 @@ urlpatterns = [ path("genres/", GenreAPIView.as_view(), name="genre-list-create"), - path("actors/", ActorGenericAPIView.as_view(), name="actor-list-create"), - path("", include(cinema_hall_router.urls)), - path("", include(movie_router.urls)), ] diff --git a/cinema_service/settings.py b/cinema_service/settings.py index 5b739e132..5d850dfa1 100644 --- a/cinema_service/settings.py +++ b/cinema_service/settings.py @@ -9,6 +9,7 @@ For the full list of settings and their values, see https://docs.djangoproject.com/en/4.0/ref/settings/ """ + import os from pathlib import Path @@ -25,7 +26,7 @@ # SECURITY WARNING: don't run with debug turned on in production! DEBUG = False -ALLOWED_HOSTS = ['127.0.0.1', 'localhost'] +ALLOWED_HOSTS = ["127.0.0.1", "localhost"] # Application definition @@ -92,16 +93,13 @@ "UserAttributeSimilarityValidator", }, { - "NAME": "django.contrib.auth.password_validation." - "MinimumLengthValidator", + "NAME": "django.contrib.auth.password_validation." "MinimumLengthValidator", }, { - "NAME": "django.contrib.auth.password_validation." - "CommonPasswordValidator", + "NAME": "django.contrib.auth.password_validation." "CommonPasswordValidator", }, { - "NAME": "django.contrib.auth.password_validation." - "NumericPasswordValidator", + "NAME": "django.contrib.auth.password_validation." "NumericPasswordValidator", }, ]