Re: How to use JS in Django?

2022-08-16 Thread Eugene Davis
Add it to ur parent html file in the head tag, do u know anything about the jinja templating engine? On Tue, Aug 16, 2022, 8:52 PM Matheus Bon wrote: > So I don't need to create a folder with only the files in JS and activate > with {% load static %} > > Interesting... I did it this way, how

Re: How to use JS in Django?

2022-08-16 Thread Matheus Bon
So I don't need to create a folder with only the files in JS and activate with {% load static %} Interesting... I did it this way, how does it work, I probably missed something I didn't see, thank you very much. Em terça-feira, 16 de agosto de 2022 às 17:27:24 UTC-3, shad...@gmail.com

Re: How to use JS in Django?

2022-08-16 Thread Shada Bahassan
Hi, The simple way for beginner that trying to use already template from any resources and the runserver if It is ok?, you have to change based on what do you want. *See the simple example below:* My First JavaScript JavaScript can change the content of an HTML element: Click Me! This is

Re: How to use JS in Django?

2022-08-16 Thread Sebastian Jung
Hey. Inspect website with browser and then view in console there are errors and in code wether yoz see block Regards Matheus Bon schrieb am Di., 16. Aug. 2022, 22:09: > Hello friends > > I'm new to Django and I'm having trouble using JS. > > I want to create a sidebar

How to use JS in Django?

2022-08-16 Thread Matheus Bon
Hello friends I'm new to Django and I'm having trouble using JS. I want to create a sidebar for my project, however, for some reason, I can't get it to 'move'. I tried the traditional way, putting the in the index.html document, but it didn't work. I tried another way, using the static