Django Vue.js Integration for Production | Django casts #9

Django Vue.js Integration for Production | Django casts #9

Red Eyed Coder Club

3 года назад

12,875 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

domjanzsoo
domjanzsoo - 18.07.2023 13:18

It seems, that configuring writeToDisk this way does not work anymore, because the property was moved to devMiddleware -> writeToDisk. Just checked the documentation of webpack-chain, there is nothing mentioned about this change. Any idea how it can be done now with webpack-chain (if it can be configured at all) ? Thanks.

Ответить
Florian G.
Florian G. - 16.05.2023 19:25

Is this setup up to date? Or in better words, is this actually the common way, yet? Using Vue3 with TS

Ответить
Wei Huang
Wei Huang - 07.05.2023 15:50

Thanks for your sharing.

Ответить
Devansh Makwana
Devansh Makwana - 11.04.2023 12:43

Amazing tutorial! But now the writeToDisk doesn't work

Ответить
Captain Br0st.
Captain Br0st. - 01.03.2023 16:46

You made it look so easy. It's great, you're great

Ответить
Yani Stancheva
Yani Stancheva - 17.11.2022 21:02

Thanks for the video, I got the following error when running the dev server :(

ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.

Any idea?

Ответить
Michael Maina
Michael Maina - 23.07.2022 14:18

This is brilliant and fantastic . Let us extend this and explore at the whole CRUD without Django-REST for better data security on the Internet.

Ответить
Cheung Ka Shing
Cheung Ka Shing - 23.03.2022 08:33

my new Vue project already has vue.config.js, after using your code. It cannot run serve with error "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema."

Ответить
Caustic
Caustic - 23.03.2022 07:16

Good stuff! thanks!

Ответить
Symon Mwenewungu
Symon Mwenewungu - 21.12.2021 04:56

So in cases where only one part of the app use vue, how can i pass a token to that part of the app without requiring the user to login again?

Ответить
guilherme martins
guilherme martins - 10.12.2021 20:38

Realmente muito bem feito e explica de uma forma muito simples

Ответить
SK Himel Haque
SK Himel Haque - 26.11.2021 18:14

you are awesome man!

Ответить
De Fidelity
De Fidelity - 12.11.2021 21:05

You mean I can now write vue without Django rest framework??

Wow, just WOW.

YOU'RE AWESOME MAN.

Ответить
dodokwak
dodokwak - 29.09.2021 22:29

Can I get rid of 'dist/static' in url in deployment? Thanks in advance.

Ответить
Тatjana Riet
Тatjana Riet - 25.09.2021 13:04

Thanks again. It's really helpful. Finally I managed to find a bug in my script that caused an error CONNECTION REFUSED. Sounds stupid but I forgot to change localhost address to real ip address of the server in my axios setup.

Ответить
Тatjana Riet
Тatjana Riet - 23.09.2021 00:52

Deployment seems to be always challenging. Thanks to this great tutorial I managed to see my static content in production (Linode ).
Unfortunately haven't succeeded yet in setting up of working api endpoints with ERR CONNECTION REFUSED. ( I test them on django server:8000 before installing gunicorn)
Has somebody had this issue? Thanks for feedback.

Ответить
bla bla
bla bla - 11.09.2021 15:15

you are an hero mate.

Ответить
prajna hegde
prajna hegde - 08.09.2021 18:45

Please do a tutorial on deployment of Django Vue webpack project on nginx.... There are many tutorials on how to deploy django on nginx but don't have a proper detailed tutorial on deploying a django project where the front end is vue using webpack loader :)

Ответить
bla bla
bla bla - 08.09.2021 13:34

can we use django template engine with vue tags?

Ответить
Abijith B
Abijith B - 02.09.2021 19:33

Thx Dude : )

Ответить
prajna hegde
prajna hegde - 11.08.2021 18:02

How do we configure different routes inside Vue Router? I am having some problem with that... All my routes coming in the same page one after other :( don't know what went wrong

Ответить
Hamoud Guicheniti
Hamoud Guicheniti - 04.08.2021 23:36

You are the best

Ответить
MizoMade
MizoMade - 29.07.2021 00:44

I have an issue with my media files, I can't get my images displayed.Does any on know ho to fix it

Ответить
TheBigAbs
TheBigAbs - 12.05.2021 16:15

This is amazing, I had a project with django and vue (without cli) that was getting pretty big and I needed webpack to make it easier to maintain, this video saved me lots of hours!!! thank you so much

Ответить
Solo Python
Solo Python - 08.04.2021 12:38

Please keep this coming, your an awesome teacher bro! I've learned so much django, vue integration with you! Love to see some docker integration on linux

Ответить
Flexi Gold
Flexi Gold - 20.03.2021 14:27

Awesome tutorial once again. Would you be kind enough to do a video on how to deploy this to heroku?

Ответить
geeshta
geeshta - 13.03.2021 19:48

I just tried to deploy this on Apache via mod_wsgi with DEBUG=False and everything works fine so far. This is actually production ready.

Ответить
geeshta
geeshta - 13.03.2021 02:08

This is absolutely awesome!
I looked into a few articles and they all make it so complicated.
Thank you very much!

Ответить
Alexey Trofimov
Alexey Trofimov - 23.02.2021 14:52

Your URL routes dont allow to use client-side routing, it has to be like default SPA wildcard route: re_path(r'^.*$' ...

Also if you need /admin to work as expected (with common middleware), the wildcard route should be like r'^(?!admin$).*$'

Otherwise you would have to put /admin/ (and maybe other django-backed parts in the real project) with explicit trailing slash, which is annoying.

Ответить
CasualViewer3
CasualViewer3 - 14.02.2021 14:54

Yeah this is amazing

Ответить
Mudasir Ali
Mudasir Ali - 13.02.2021 23:57

Well, Thank YOU :)

You are very responsive.

appreciated.

Ответить
SyntacOps
SyntacOps - 12.02.2021 21:43

Awesome! Easy to follow and straight forward, thank you!

Ответить