On Thu, Feb 25, 2021 at 04:24:25PM +0530, Salima Begum wrote:
> I have developed a project by using django and for front end functionality
> I am using vuejs so, how to use .vue files in django project in my project
> .vue files are not accepting.
Can you provide more details like the error messages you're seeing?
You might need to use the Vue CLI[1] to transform the .vue files into .js
that you can then serve using Django's staticfiles. There are several[3]
tutorials[4] online.
[1] https://vuejs.org/v2/guide/single-file-components.html#For-Users-New-to-Module-Build-Systems-in-JavaScript
[2] https://docs.djangoproject.com/en/3.1/howto/static-files/
[3] https://www.valentinog.com/blog/vue-django/#serving-the-single-page-with-django-in-production
[4] https://www.google.com/search?q=django+vuejs
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/20210225223441.GD19963%40fattuba.com.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment