D
D
DUDE2019-10-09 22:05:01
Django
DUDE, 2019-10-09 22:05:01

Django + Vue + Suffering?

Hello everyone, I have a project in Vue. I need to saw down the back end on Django, so much so as not to cut myself out.
Could you please explain (it would be very cool if detailed) how to connect Django and Vue? How does Vue communicate with the server? And what needs to be done in order to file an API for this whole thing?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
sim3x, 2019-10-09
@sim3x

https://www.django-rest-framework.org/
or CBV

A
Alexey Nikolaev, 2019-10-09
@Heian

Yes, everything is there. Saw the usual rest api and access this api via fetch, in json you give the answer. Vue has nothing to do with it, this is a different level of abstraction, and here, in fact, the usual asynchronous communication between the client and the server.

M
Mors Clamor, 2019-10-09
@66demon666

I agree with the speakers above, we need a RESTful API

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question