Hi Pierre,

You probably want Bearer Tokens or JWT authentication for your API. That will allow your API to be totally separate from your Vue app.

Something like this should get you started: https://medium.com/django-rest/django-rest-framework-jwt-authentication-94bee36f2af8

Then, you don't need Vue to be inside Django at all. They shouldn't need to mix.

--

Questions so I can help better:

- Do you have a standalone Vue app that can run without Django (e.g. via `yarn start` or `yarn serve`)?

- Do you have a Django API already built that -- if you turned off authentication -- would work with the Vue app?

--

Static Vue + Django API + Authentication sounds like a fun idea for a post. Maybe I'll write one (or at least some sample code) over the next few weeks.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store