__init __()获得了意外的关键字参数'init_command'

时间:2019-04-05 09:09:35

标签: python django swagger

当尝试在Django中包含招摇时我遇到了这个问题:

from django.urls import path
from django.conf.urls import url

from rest_framework_swagger.views import get_swagger_view
from index import views

schema_view = get_swagger_view(title='API')
urlpatterns = [

    #path('', views.index),

    path('img', views.add_image),
    path('valider', views.valider),
    path('all', views.get_all_image),
    path('docs/', schema_view),
    path('<str:idd>', views.get_image),
]

0 个答案:

没有答案