from api import views from django.urls import re_path from api01 import views urlpatterns = [ re_path(r'^login/', views.Loginview.as_view()), ]