Commit a6f2efcd by Chif Gergő

Remove rest swagger dependency, add static root to prod settings

parent e624a8fb
...@@ -39,7 +39,6 @@ INSTALLED_APPS = [ ...@@ -39,7 +39,6 @@ INSTALLED_APPS = [
"rest_framework", "rest_framework",
"rest_framework.authtoken", "rest_framework.authtoken",
"djoser", "djoser",
"rest_framework_swagger",
"corsheaders", "corsheaders",
"guardian", "guardian",
"django_nose", "django_nose",
......
...@@ -13,3 +13,5 @@ DATABASES = { ...@@ -13,3 +13,5 @@ DATABASES = {
"PASSWORD": os.getenv("DATABASE_PASSWORD"), "PASSWORD": os.getenv("DATABASE_PASSWORD"),
} }
} }
STATIC_ROOT = "/static/"
...@@ -15,10 +15,6 @@ Including another URLconf ...@@ -15,10 +15,6 @@ Including another URLconf
""" """
from django.contrib import admin from django.contrib import admin
from django.urls import path, re_path, include from django.urls import path, re_path, include
from rest_framework_swagger.views import get_swagger_view
schema_view = get_swagger_view(title="RECIRCLE API")
urlpatterns = [ urlpatterns = [
path("api/v1/", include("image.urls")), path("api/v1/", include("image.urls")),
...@@ -27,5 +23,4 @@ urlpatterns = [ ...@@ -27,5 +23,4 @@ urlpatterns = [
path("admin/", admin.site.urls), path("admin/", admin.site.urls),
re_path(r"^auth/", include("djoser.urls")), re_path(r"^auth/", include("djoser.urls")),
re_path(r"^auth/", include("djoser.urls.authtoken")), re_path(r"^auth/", include("djoser.urls.authtoken")),
path(r"swagger", schema_view),
] ]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment