Skip to content

Commit

Permalink
corrected ai require flake8 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Postpostman committed Dec 6, 2024
1 parent 6261a64 commit 039c368
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
8 changes: 4 additions & 4 deletions cinema/urls.py
Original file line number Diff line number Diff line change
@@ -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"

Expand All @@ -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)),
]
12 changes: 5 additions & 7 deletions cinema_service/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down Expand Up @@ -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",
},
]

Expand Down

0 comments on commit 039c368

Please sign in to comment.