Commit a6f2efcd by Chif Gergő

Remove rest swagger dependency, add static root to prod settings

parent e624a8fb
......@@ -39,7 +39,6 @@ INSTALLED_APPS = [
"rest_framework",
"rest_framework.authtoken",
"djoser",
"rest_framework_swagger",
"corsheaders",
"guardian",
"django_nose",
......
......@@ -12,4 +12,6 @@ DATABASES = {
"USER": os.getenv("DATABASE_USER"),
"PASSWORD": os.getenv("DATABASE_PASSWORD"),
}
}
\ No newline at end of file
}
STATIC_ROOT = "/static/"
......@@ -15,10 +15,6 @@ Including another URLconf
"""
from django.contrib import admin
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 = [
path("api/v1/", include("image.urls")),
......@@ -27,5 +23,4 @@ urlpatterns = [
path("admin/", admin.site.urls),
re_path(r"^auth/", include("djoser.urls")),
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