ariera / ariera.github.io

Alejandro Riera's blog
http://ariera.github.io
1 stars 1 forks source link

2017/09/26/django-webpack-vue-js-setting-up-a-new-project-that-s-easy-to-develop-and-deploy-part-1 #2

Open utterances-bot opened 5 years ago

utterances-bot commented 5 years ago

Django + webpack + Vue.js - setting up a new project that's easy to develop and deploy (part 1)

In this post we will cover the key points on setting up a nice and solid development environment that is consisten with production and hence easy to deploy. The specifics of how to deploy, final configuration touches and (automation) will be discussed in a future article.

https://ariera.github.io/2017/09/26/django-webpack-vue-js-setting-up-a-new-project-that-s-easy-to-develop-and-deploy-part-1.html

LuisEnriqueGurria commented 5 years ago

Hello good day, I work with django and Vuejs 2 decoupled, I do not have the webpack, I have a problem when uploading an image on my page, I can not find the way to do it, and look for the found examples and nothing. So I started to decompose everything and I find that I need two things, 1.- I have an APi where I do PUT and I need to upload the file. with examples found me wrong mark. 2.- I found that the file does not upload and I do not see the way to say it in vue. Might you help me??

ariera commented 5 years ago

Hi Luis Enrique,

I think the best, for general purpose questions like this, would be to post them in a public discussion forum, for example https://stackoverflow.com

That way is good for you, because more people will see it and be able to help you. And it will also be good for the community, because people having the same problem will search for the solution there.

Feel free to let me know where you did you post your question and I'll do my best to help you there :)

LuisEnriqueGurria commented 5 years ago

They have not been able to help me, I have been here for weeks and I left my question and there is no answer, thanks

Enviado desde mi iPhone Kike Gurria 📱

El 1 jun 2019, a la(s) 2:00 a. m., Alejandro Riera notifications@github.com escribió:

Hi Luis Enrique,

I think the best, for general purpose questions like this, would be to post them in a public discussion forum, for example https://stackoverflow.com

That way is good for you, because more people will see it and be able to help you. And it will also be good for the community, because people having the same problem will search for the solution there.

Feel free to let me know where you did you post your question and I'll do my best to help you there :)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

jonathan-s commented 5 years ago

I've been using webpack with django and the django-webpack-loader. It seems like that the following request [03/Jul/2019 10:34:48] "GET /sockjs-node/info?t=1562150088575 HTTP/1.1" 404 is being routed to django.

Which makes the hot reload not to work... not sure how to resolve that. Seems like I managed to get it working for the CSS part, by following the extra instructions in the other post mentioned.

But still getting Ignored an update to unaccepted module

juanjcardona13 commented 5 years ago

Hi, I don't know if you've worked with Nuxt, which I think is a great framework for Vue.

Several weeks ago I took a process of integration of Nuxt along with Django the way you did with Vue, to do this I based on this blog and those you recommended configuring webpack, webpack-hot-middleware and webpack-dev-middleware in the file of nuxt.config.js but still not achieved that the two are integrated in a clean way because Django applies the styles of Nuxt in their templates and Nuxt is lost in the URLs.

You can see the project in: https://github.com/juanjcardona13/DjangoNuxt

I appreciate any collaboration, opinion, comment or suggestion.

banklan commented 3 years ago

Thank you for this wonderful tutorial.I have a Django/vuejs app deployed to heroku. After successful deployment, I keep getting a blank screen on the pages. On the browser console I get an error message complaining of not been able to apply bundle.css style because of its Mime type. I use webpack-loader in Django and webpack bundle tracker in vuejs. Wondering if you will be kind enough to help me look at it. Thank you. https://stackoverflow.com/questions/66351625/django-vuejs-app-deployed-to-heroku-showing-blank-pages