An warware: mara izini vue django tsarin hutu

Ɗaya daga cikin manyan matsalolin tare da amfani mara izini na Rest Framework shine cewa ana iya amfani da shi don samun damar bayanai masu mahimmanci da albarkatu akan sabar gidan yanar gizo. Ana iya yin wannan ta amfani da tsarin don ƙirƙirar wuraren ƙarshe na al'ada waɗanda ke ba da damar samun dama ga albarkatu a waje da yanayin aikace-aikacen yanar gizo na yau da kullun. Wannan na iya ƙyale masu amfani mara izini su sami damar yin amfani da bayanai masu mahimmanci ko albarkatu, ko ma shigar da lamba mara kyau a cikin aikace-aikacen kanta. vue-router Ina amfani da Django Rest Framework tare da Vue.js da vue-router. Lokacin da na yi ƙoƙarin shiga shafin, na sami kuskure 401: {"cikakkun bayanai": "Ba a bayar da takaddun shaida ba." } My urls.py: daga django.contrib shigo da admin daga django.urls shigo da hanya, sun hada da urlpatterns = [hanyar ('admin/', admin.site…

Tsarin Django REST - Yadda ake ƙara filayen al'ada a cikin serializer? vue django rest framework vue-router Ina ƙoƙarin ƙara wasu filayen al'ada a cikin serializer na amma ba ya aiki a gare ni, ga lambara: model.py class User(AbstractUser): email = model.EmailField(na musamman=Gaskiya) first_name = samfuri….

Vue Router - Ta yaya zan iya tura mai amfani bayan shiga? vue django rest framework vue-router Anan ne lambara don bangaren shiga: